summaryrefslogtreecommitdiffstats
path: root/download.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-01-26 20:20:39 +0100
committerGravatar ryuslash2010-01-26 20:20:39 +0100
commit53c7802ae2ef25ebed4e130813ce95e2816c919b (patch)
tree24ecf09fc150a1b0f044675dc9974dd4b09def49 /download.py
parentc73778910508d43a247feb868f870ad408c4d360 (diff)
download4grab-53c7802ae2ef25ebed4e130813ce95e2816c919b.tar.gz
4grab-53c7802ae2ef25ebed4e130813ce95e2816c919b.zip
Configuration
* A configuration file is made if one hasn't been found * Certain values (currently download category and location) are stored in config file.
Diffstat (limited to 'download.py')
-rw-r--r--download.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/download.py b/download.py
index 28b316e..e448fa0 100644
--- a/download.py
+++ b/download.py
@@ -5,7 +5,7 @@ import htmlparser
import progressbar
import config
-savedir = Configuration().get_download_location()
+savedir = config.Configuration().get_download_location()
def get_thread_links(baseurl):
myparser = htmlparser.MyParser()
@@ -89,7 +89,7 @@ def get_images(t = []):
if __name__ == "__main__":
# Get a file-like object for the 4chan.org w/imgboard
- base_url = "http://boards.4chan.org/" + Configuration().get_category() + "/"
+ base_url = "http://boards.4chan.org/" + config.Configuration().get_category() + "/"
# Get the hyperlinks.
t = get_thread_links(base_url)