Scripts for the link hoarders out there, specifically for Raindrop and Pocket users.
The /autotag_raindrops.py
script iterates through every link in a given Raindrop collection and automatically tags the link with all suggested tags (assuming you are a Pro subscriber). Because the API is throttled to 120 requests a minute, a large collection will take a while to complete.
Add your Raindrop token and collection ID to /config.py
. You can get the collection ID from the URL on the Raindrop web app.
You will also need Python 3.7 or later, and this dependency:
pip3 install python-raindropio requests
Before running, create /config.py
file (in the root directory) with the following:
test_token = '*****'
collection_ids = ['unsorted', '00000000']
start_page = 0
Tagging Raindrop links with all suggested tags will result in a lot of tags. You can use the /manage_tags.py
script to clear out all tags with n bookmarks.
Add the following to /config.py
:
raindrop_tags_path = './tags_list.py'
The /manage_pocket.py
script helps clear out your unread Pocket queue: removing duplicates, filtering on domain, word count, and/or age. Add the following to /config.py
and run the script in a REPL:
pocket_consumer_key = '*****'
pocket_access_token = '*****'
pocket_links_path = './pocket_articles.json'