AlttiRi / twitter-click-and-save

[userscript] Adds buttons to save images and videos in Twitter, also does some other enhancements. (Twitter image and video downloader)
https://greasyfork.org/en/scripts/430132
GNU General Public License v3.0
103 stars 8 forks source link

Other issue: twitter-download-bookmarks #19

Open Wikinaut opened 1 year ago

Wikinaut commented 1 year ago

Dear @AlttiRi , I am currently - as many - in the need to find a reliable tool for downloading all own twitter bookmarks.

I found these two complicated tools

https://github.com/jarulsamy/Twitter-Archive https://github.com/Webklex/tbm

and this (version v3) which "only" needs manual work (developer console and pasting the xhr replies into single json files, then to run a small python script). Here my idea comes in to automate the fetch of the json files using greasemonkey.

https://divyajyotiuk.hashnode.dev/exporting-your-twitter-bookmarks-in-markdown-file and https://gist.github.com/divyajyotiuk/9fb29c046e1dfcc8d5683684d7068efe#file-get_twitter_bookmarks_v3-py

So my idea is (and I want to ask you, perhaps you find this interesting, too) to develop a greasemonkey script doing all the work of fetching all bookmarks and then to download their texts, urls and images locally.

AlttiRi commented 1 year ago

I highly recommend to use gallery-dl for bulk downloading.

Here is the config file example to have the same filenames as I use in the userscript: https://github.com/AlttiRi/twitter-click-and-save#gallery-dl-config

It also supports bookmarks downloading:

gallery-dl https://twitter.com/username/likes

Just do not forget to set your auth_token cookie in the config file.

I recommend to spend some time with set up gallery-dl. It's worth it.

AlttiRi commented 1 year ago

However, it has not the best how-to use guide. Maybe I should write a more detailed guide on how to use it. Since it would be difficult to use a CLI program for people that do not have experience with console programs.