2hands10fingers / Reddit-Image-Scraper-1.0

Scrapes/downloads a selected subreddit's posted images by a specified date range on http://reddit.com
http://www.glotacosm.com
48 stars 13 forks source link

Add argparser feature #10

Open tjcim opened 6 years ago

tjcim commented 6 years ago

Add the ability to call the script without requiring additional input from the user.

2hands10fingers commented 6 years ago

@tjcim

Arguments for parsing ideas Date selection ex: python3 RedditImageScraper.py -sDate "10282017 -eDate "10292017"

Subreddit selection ex: python3 RedditImageScraper.py --sDate "10282017 --eDate "10292017" --sub "wallpapers"

Selection of download path ex: python3 RedditImageScraper.py --path "destination/to/path"

Download just today's images python3 RedditImageScraper.py --today --sub "wallpapers"

Extra Download image name, link, and how many upvotes and downvotes the image got to a csv

ex: python3 RedditImageScraper --csv

Ability to filter NSFW images ex: python3 RedditImageScraper --nsfwFilter

tjcim commented 6 years ago

I like all of those, except for the camel-cases, not very pythonic! :)

2hands10fingers commented 6 years ago

@tjcim Someone suggested making it --from and --to, so that's totally doable.