EltonChou / TwitterMediaHarvest

Download twitter media with only one-click.
https://chrome.google.com/webstore/detail/media-harvest-twitter-med/hpcgabhdlnapolkkjpejieegfpehfdok
MIT License
426 stars 36 forks source link

[FEATURE] Batch download media from Bookmarks #137

Open nullbunny opened 7 months ago

nullbunny commented 7 months ago

Is your feature request related to a problem? Please describe.

I often bookmark things on my phone that I want to later download back on the PC. It would be nice to have a button that schedules out downloads of bookmarked things.

Describe the solution you'd like

I go to the Bookmarks section of Twitter/X and there is a button at the top to download all bookmarked media.

Describe alternatives you've considered

Going though the bookmarks one by one, downloading each one in turn and removing them from the bookmarks.

EltonChou commented 7 months ago

Thanks for your suggestion.

It looks like this feature is more realistic than scraping all medias from certain account. I think I can implement this in v5.x.x.

If you have more ideas about this feature. Feel free to share.

nullbunny commented 7 months ago

That would be awesome, thank you so much!

shejiajie commented 5 months ago

It is really excited that you want to add this feature, I used to use another addon which has this feature, as some reason the author stop to support it, I am very happy that you will add this feature/

It is called twMediaDownloader but the author has delete it on github

MtZero commented 4 months ago

Thanks for your suggestion.

It looks like this feature is more realistic than scraping all medias from certain account. I think I can implement this in v5.x.x.

If you have more ideas about this feature. Feel free to share.

A deleted extension and github repo named Twitter Media Downloader author by @furyutei can scrape all media from an account, returning a zip file.

MtZero commented 4 months ago

I found it on my old pc twitter_media_downloader.zip

EltonChou commented 4 months ago

An extension is not a good place to do batch download job.

hychanbn1009 commented 2 months ago

Hi @EltonChou, I'm interested in adding a batch download feature to the project. While looking through the code, I noticed you are using the twitter-openapi endpoint for TweetDetails. I was wondering if it would be possible to use the UserMedia endpoint instead to download multiple media files in one request?

I tried making a request to the UserMedia endpoint in Postman but it didn't return all the media objects.

EltonChou commented 2 months ago

Hi @EltonChou, I'm interested in adding a batch download feature to the project. While looking through the code, I noticed you are using the twitter-openapi endpoint for TweetDetails. I was wondering if it would be possible to use the UserMedia endpoint instead to download multiple media files in one request?

I tried making a request to the UserMedia endpoint in Postman but it didn't return all the media objects.

Twitter's api endpoint is little tricky. I will experimentally implement batch-donwload from bookmarks or likes in v5.0.0. The codebase is refactoring now. I will ping you when the refactoring is done, so you can have a reference.