diff options
Diffstat (limited to 'download.py')
-rw-r--r-- | download.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/download.py b/download.py index 2405805..05a5328 100644 --- a/download.py +++ b/download.py @@ -25,7 +25,8 @@ import htmlparser #import progressbar import config -savedir = config.Configuration().get_download_location() +conf = config.Configuration() +savedir = conf.get_download_location() if not os.path.exists(savedir): os.makedirs(savedir) @@ -127,7 +128,7 @@ class Downloader(object): if __name__ == "__main__": # Get a file-like object for the 4chan.org w/imgboard - base_url = "http://boards.4chan.org/" + config.Configuration().get_category() + "/" + base_url = "http://boards.4chan.org/" + conf.get_category() + "/" # Get the hyperlinks. t = get_thread_links(base_url) |