Git Product home page Git Product logo

Comments (11)

santosderek avatar santosderek commented on May 25, 2024

Hello!

Currently there is no way to paginate through a large collection but I will add it in. I have to look further into why there is a cap of favorites being collected.

Sorry for the inconvenience.

from imgur-to-folder.

santosderek avatar santosderek commented on May 25, 2024

After looking into ImgurPython (the module I've been using to request from Imgur), I have found that Imgur no longer supports this package as of two months ago.

I have found that the limit of favorited items that can be requested at a time are the latest 60 albums. Due to this limitation I have changed the descriptions the respective commands to reflect this 60 item limitation, for the time being.

I intend to use Imgur's restful api to overcome this obstacle, but this may take time to implement so until further updates, I will keep the descriptions to reflect the 60 item limitation.

Again, sorry for the inconvenience!

from imgur-to-folder.

Fynkymynky avatar Fynkymynky commented on May 25, 2024

Sorry for not getting back to you sooner. Thank you very much for looking into this and you haven't caused any inconvenience :)

Thank you for the great work.

from imgur-to-folder.

santosderek avatar santosderek commented on May 25, 2024

Hello!

I have now added a new implementation to the way favorited items are downloaded. Theoretically, there shouldn't be any limit to how many favorited items are downloaded, but Imgur does limit to about 12,500 requests per day on their side as I have found out through their documentation.

Since there is now a new implementation, the way of authenticating has changed and steps can be found at the bottom of the README.md.

Please let me know if any issues pop-up with the program!

from imgur-to-folder.

yugaanks avatar yugaanks commented on May 25, 2024

Hi,
I have 750 images in favorites and after following the instructions in the description, I could download all the files successfully. Thank you.
Sync Question (nevermind- see edit)
I have a question- Is there a way to sync the folder- For example, only download the files that are not in the current folder. Say if one day I have more than 12500 images in favorites, and I run the app again, will it re-download all the files which are already in the current folder and overwrite them? or is there a way to skip those files and not count them as a request, so only download the latest files.
Earlier it was mentioned that you can download the latest 60 files but I see the command is same for both, latest 60 files and download all files in favorites. If there is a way to download only the latest 50 or 60 files, I could just periodically run that command and sync it manually.
I apologize if I failed to understand the description.
Edit- Okay, my bad, I see the difference in download-all-favorites and latest-favorites. Anyways, Thank you for the app. Nice work.

from imgur-to-folder.

santosderek avatar santosderek commented on May 25, 2024

The program will skip over files that it has already downloaded; so if you run it a second time it will fetch a list of all your favorites and download the missing items. This is based on file name so if the file name is not found within the download folder it will download the missing item.

I plan to add more options to the downloading of favorites, including grabbing the latest "X" number of favorites, with the user specifying the "X", as well as adding an "oldest" option as well.

from imgur-to-folder.

yugaanks avatar yugaanks commented on May 25, 2024

that would be a really great feature to download the latest X images only.
In my case, I use google back up and sync program- downloading the images from imgur to folder to adding them to google photos, and when it's done, I remove the images from the folder. That is why downloading only the latest 50 or 60 images would be suitable for me instead of downloading all the favorites over and over.

from imgur-to-folder.

santosderek avatar santosderek commented on May 25, 2024

Hello!

I have added the ability to sort by newest and oldest favorited items, and also added the ability to limit the amount of favorites to download.

imgurtofolder --download-latest-favorites [username] --max_favorites [maximum_number_of_favorites]

[OR]

imgurtofolder --download-oldest-favorites [username] --max_favorites [maximum_number_of_favorites]

These commands will download your latest / oldest favorited items up to the number specified. You could also not include --max_favorites [maximum_number_of_favorites] and download all your favorites in order from latest / oldest.

imgurtofolder --download-latest-favorites [username] 

[OR]

imgurtofolder --download-oldest-favorites [username] 

These two commands will hopefully offer better ease in your backing up and syncing to google drive.

Lastly, I have added --overwrite incase pictures needed to be overwritten.

If there is any complications / improvements you have, feel free to ask!

from imgur-to-folder.

yugaanks avatar yugaanks commented on May 25, 2024

It works!
Thank you. exactly what I needed.

from imgur-to-folder.

yugaanks avatar yugaanks commented on May 25, 2024

hey,
in description, it says
imgurToFolder --download-latest-favorites [username] --max_favorites [maximum_number_of_favorites]
but command works with --max-favorites

from imgur-to-folder.

santosderek avatar santosderek commented on May 25, 2024

Hello!

Thank you for letting me know!

I just fixed --max-favorites to alert user if no number was given. Before it was acting as if --max-favorites was not even called and downloaded all favorites.

I also added a better example to the README and changed the headers.

Just let me know if there was anything else that I could improve!

from imgur-to-folder.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.