diff options
author | ache <ache@ache.one> | 2016-12-12 03:02:39 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2016-12-12 03:03:32 +0100 |
commit | e7dd68abc20b175c02846ad18c8afabbc33d51d1 (patch) | |
tree | 0f09652a43c2e208d933186e7646e7cc6a4ddc1f /bot4chan.py | |
parent | Rigth fixes in the Makefile (diff) |
Fix bot4chan firt argument download
Diffstat (limited to 'bot4chan.py')
-rwxr-xr-x | bot4chan.py | 4 |
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") |