Skip to main content

Convert bird based bookmarks to board based ones.

Project description

bird2board

Convert bird based bookmarks to board based ones.

Automated tests

This tool takes raw Twitter Bookmarks data and pushes the bookmarks to Pinboard.

Installation:

  1. Clone this repository
  2. Install with pip
#> cd bird2board
#> pip install .

Usage:

First download the raw Twitter bookmarks data:

  • Open the Twitter Bookmarks page
  • Using Developer tools, look for Network requests starting with Bookmarks?variables=.
  • For each of these requests, copy the response, which starts with {"data":{. You can copy the response through the right click context menu.
  • Save the response JSON into a new file.
  • If you have more than a single screen of bookmarks, scroll down to create more requests and responses. Copy these into new files in a directory.

Next find your Pinboard API token:

  • Sign into Pinboard
  • Go to Settings page and select Password tab.
  • Copy the API token including the username at the start.

Then use the tool to convert the bookmark data and save in Pinboard:

#> bird2board --help
Usage: bird2board [OPTIONS] PATH

  Save Twitter Bookmark .json file(s) at PATH (file or directory) to account
  using PINBOARD TOKEN.

Options:
  --toread / --not-toread    set Pinboard bookmarks as "to read"
  --shared / --not-shared    set Pinboard bookmarks as shared
  --replace / --no-replace   replace existing Pinboard bookmark for an URL
  -p, --pinboard-token TEXT  user token for Pinboard API  [required]
  --help                     Show this message and exit.

Example usage:

#> bird2board -p MY_TOKEN --toread ./responses/

Instead of providing the Pinboard API token as an option to the script, you can set the $BIRD2BOARD_PINBOARD_TOKEN environmental variable.

#> export BIRD2BOARD_PINBOARD_TOKEN=MY_TOKEN
#> bird2board --toread ./responses/

Notes:

  • The Pinboard API requires a 3 second wait between API requests, so submitting a large number of bookmarks can take a long time.
  • The Twitter Bookmark responses captured above are from the non-public API, and there will likely be breaking changes to the response structure in the future. Most recent breaking change to the response data was in June 2021.

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

bird2board-0.2.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

bird2board-0.2.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file bird2board-0.2.0.tar.gz.

File metadata

  • Download URL: bird2board-0.2.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for bird2board-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6a6d9e0888919651cbff0c7eba9221320dbaea1ab9acb9326a02c015a21a6b37
MD5 320d318e68395be2d17cbb93ed0aeb86
BLAKE2b-256 54f7389ce00cf25ad93308b853038a6daa9e5e2cc30f0a6f2ebf5c91ada7ce91

See more details on using hashes here.

File details

Details for the file bird2board-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bird2board-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for bird2board-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4de51eb34bec337eff4c9bafca5d3e74e655bf7fcd56863b66685c2258c87dee
MD5 6c760b253f706e9da7ab8beb879caaf4
BLAKE2b-256 0744e73c229c4a3ee8d49fd3421f483144a84f5e3c14fdcb29a9263aa5bc98e3

See more details on using hashes here.

Supported by

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