Who knows what the hell I did this time
This commit is contained in:
parent
d41ab5335e
commit
9ed19eae00
1 changed files with 3 additions and 0 deletions
3
4grab.py
3
4grab.py
|
@ -29,6 +29,7 @@ base_url = "http://boards.4chan.org/"
|
||||||
parser = optparse.OptionParser()
|
parser = optparse.OptionParser()
|
||||||
|
|
||||||
def walk_with_wizard(baseurl):
|
def walk_with_wizard(baseurl):
|
||||||
|
wzrd_msg = "Pilates! *SHAZAM* Here they come!"
|
||||||
print "Alright, let me put on my robe and wizard hat."
|
print "Alright, let me put on my robe and wizard hat."
|
||||||
|
|
||||||
# Single or all
|
# Single or all
|
||||||
|
@ -46,12 +47,14 @@ def walk_with_wizard(baseurl):
|
||||||
else:
|
else:
|
||||||
thread = inp
|
thread = inp
|
||||||
inp = raw_input("Which category is this thread in? ")
|
inp = raw_input("Which category is this thread in? ")
|
||||||
|
print wzrd_msg
|
||||||
t = download.get_image_links("%s%s/res/" % (baseurl, inp), [thread])
|
t = download.get_image_links("%s%s/res/" % (baseurl, inp), [thread])
|
||||||
else:
|
else:
|
||||||
inp = raw_input("Which category would you like to download? ")
|
inp = raw_input("Which category would you like to download? ")
|
||||||
config.Configuration().set_category(inp)
|
config.Configuration().set_category(inp)
|
||||||
baseurl = "%s%s/" % (baseurl, config.Configuration().get_category())
|
baseurl = "%s%s/" % (baseurl, config.Configuration().get_category())
|
||||||
|
|
||||||
|
print wzrd_msg
|
||||||
t = download.get_thread_links(baseurl)
|
t = download.get_thread_links(baseurl)
|
||||||
t = download.get_image_links(baseurl, t)
|
t = download.get_image_links(baseurl, t)
|
||||||
(skipped, failed, downloaded, total) = download.get_images(t)
|
(skipped, failed, downloaded, total) = download.get_images(t)
|
||||||
|
|
Loading…
Reference in a new issue