joshua-hull / Reddit-Image-Scraper

Perl script to download imaged hosted at imgur.com linked from a subreddit at reddit.com
25 stars 8 forks source link

album folders #11

Open gentertain opened 12 years ago

gentertain commented 12 years ago

could you please integrate a feature that saves the imgur album in a separate folder

joshua-hull commented 12 years ago

Do you mean to save the folder for each subreddit in a different location? I think that would be a pretty easy easy thing to implement. Consider it on my todo list. Thanks for your interest.

gentertain commented 12 years ago

I dont know if you understood me right. I meant that it should save the images of each imgur album in a folder named after the post title and single images as a single file in the subreddit folder like now.

Thanks for your quick response

Am 28.06.2012 um 19:30 schrieb Joshua Hullreply@reply.github.com:

Do you mean to save the folder for each subreddit in a different location? I think that would be a pretty easy easy thing to implement. Consider it on my todo list. Thanks for your interest.


Reply to this email directly or view it on GitHub: https://github.com/joshua-hull/Reddit-Image-Scraper/issues/11#issuecomment-6636118

joshua-hull commented 12 years ago

Thanks for the clarification. Scraping albums is currently in the works. Your idea of naming the album after the post is actually a good idea. I will definitely consider that when I implement scrapping albums.

gentertain commented 12 years ago

ive implemented it myself now. i couldnt resist the challenge. if you want it i can give it to you. but expect the noobiest programming because i have never coded with perl until today. i started after i wrote to you.

joshua-hull commented 12 years ago

I'd love to have a look at your code. I love it when people submit code. Congrats and welcome to Perl. I'm no master myself but I picked it up quick and I expect you will too. When you started did you code against the main branch or the Development branch?

Reasorz commented 11 years ago

I see this is a pretty old issue, but there is a projects on githyb making album folders. https://github.com/manabutameni/Imgur I'd prefer to have the folders named after the reddit post title myself. I'd also like it to be sorted in folders like reddit username->post title->image files. Are you still working on this project? It would be very nice for some of the subreddits to be able to download all of specific users posts...

joshua-hull commented 11 years ago

The script gets developed on in fits and starts. I'll take this into consideration when I do some work on it next, probably when school gets out for the summer.

aggrolite commented 11 years ago

@Reasorz I'm sort of with you when you say you want directories for usernames, but why post titles? This will just create way too many directories and many will contain only one image as many post titles are unique.

atommclain commented 10 years ago

Regardless of how it's implemented, I'd like to see this feature as well. :)

aggrolite commented 10 years ago

I can hack on something this weekend and at least make a fork until it's approved by @joshua-hull

aggrolite commented 10 years ago

hi everyone, I've added a change that will save album images into a subdirectory named after the album's hash ID. For example, if we scrape imgur.com/a/abcdef from r/pics, the images from that album will be saved in the directory pics/abcdef. This should work well as a unique ID for each album. Creating folders based on post titles would create problems as multiple albums can have the same title.