HDZA / Reddit-Imgur-Mass-Picture-Downloader

A python-based program that uses the PRAW library to connect to reddit and collect imgur links to scrape.
0 stars 0 forks source link

A folder specification and creation option. #6

Open HDZA opened 8 years ago

HDZA commented 8 years ago

Right now I figure it would be neat if I could just have the python script sit at the root directory and in that directory there could be multiple folders with user specified names. There could also be an option to create a new folder just for that one instances. If there are multiple subreddits defined you could choose a destination folder for each chosen subreddit. Considering this is linux I might have to give the python script greater permissions or specify that users need to run it with sudo. I'm not entire sure if that's OK in python but i'll look into that also.

HDZA commented 8 years ago

A small progress report on what's going on with this enhancement:

I've decided that a fun way to handle this bug would be to implement a UI. This is an idea I had been kicking around for a while but it actually solves a lot of the enhancement issues that I filed before. With that in mind I decided to try urwid and see if I can't make a bare bones UI that can offer a folder selection or creation option and also present the entire program in a little more polished way. I can later come back to it and add more polish if I see fit to do so.

Urwid can apparently do things like progress bars and menus and has lots of other powerful features. What I hope to do with this enhancement is:

  1. Implement a folder specification and creation option when I get that all figured out i'll upload it as a patch since I consider it a fairly major feature. This may entail a lot of tinkering around with older code that I had written a few weeks back. Right now I just rely on input() as a way to get user instructions. This may be a bit beefier than I originally estimated.
  2. Implement a progress bar for my image dupe feature.