aboutsummaryrefslogtreecommitdiff
path: root/bot4chan.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot4chan.py')
-rwxr-xr-xbot4chan.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot4chan.py b/bot4chan.py
index 5186697..736ad6e 100755
--- a/bot4chan.py
+++ b/bot4chan.py
@@ -6,7 +6,9 @@ import re, os, sys
sujet = []
sujetT = []
-#os.system("wget " + sys.argv[1] + " -O index.html -N -q")
+os.system("wget " + sys.argv[1] + " -O index.html -N -q")
+os.system("sed -i 's/<\\/a>/<\\/a>\\n/g' index.html")
+
regex = '<span class="filesize">(File : |File)<a href="(.*?)" target="_blank">(.*?)</a>'
regex = '<a class="fileThumb" href="(.*?)" target="_blank">'
os.system("mkdir -p dump")