Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: append(t) t.start() incr += get_page time.sleep(1) while (incr % 25) != 0: incr-=1 incr+=1 nb = str(incr) def crawler(forum): dbt = MySQLdb.connect(host="localhost", user="root", passwd="oelsoels67", db="forums") cursort = dbt.cursor() page_forum = s.get(forum) html = page_forum.text soup = BeautifulSoup(html) get_topics(soup, cursort) page_suiv = 'url' while True: page_suiv = get_next_page(soup) i Source: http://pastebin.com/raw.php?i=38Ga3FUX
↧