Skip to main content

pinboard.in bookmark cleaner

Project description

With the announcement that Google Reader is being shuttered, I decided I needed to go through my pinboard.in bookmarks and update any that point to a feedproxy.google.com URL while their redirecting service is still online. This script does that automatically.

What does it do?

link_scrubber processes all of your bookmarks, looking for those that redirect. It adds a new bookmark with the target of the redirect and all the same metadata from the original link. By default, only URLs from feedproxy.google.com are processed, but there are command line options to process all redirects or to add more individual sites.

The links are processed in small batches to reduce the load of individual calls against the pinboard API server, so it can take a while to process. Once a batch of links is fetched, it is checked in parallel to speed things up a little.

Installing

Install via pip:

$ pip install git+http://github.com/mgan59/python-pinboard.git@v1.0#egg=python-pinboard
$ pip install linkscrubber

Running

To use it, pass your pinboard.in user token to the -t option, or use your username and password with the --user and --password options.

$ linkscrubber -t token

or

$ linkscrubber -u username -p password

or, leave off the password and you will be prompted

$ linkscrubber -u username
Password:

To see what would be changed, without making any changes, use the --dry-run option.

$ linkscrubber --dry-run -t token

For the full list of options, use:

$ linkscrubber -h

Disclaimer

You should back up your account before running the script. I have done some testing, but only against one account. Yours might behave differently.

Reporting Bugs

Use the github bug tracker at https://github.com/dhellmann/link_scrubber to report problems.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linkscrubber-1.0.tar.gz (11.3 kB view details)

Uploaded Source

File details

Details for the file linkscrubber-1.0.tar.gz.

File metadata

  • Download URL: linkscrubber-1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for linkscrubber-1.0.tar.gz
Algorithm Hash digest
SHA256 fd4d1b96f3b0e97252083f2cf9f2b7e35f77435ec192d6fb0a57bf03d0b2ad29
MD5 f3388cbb0aed84662d2080b0bd7e32bf
BLAKE2b-256 b98e7a6810d1531d5cdf9f50dfba1f003a67daa00c93c8559971a60067f33ab2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page