GithubHelp home page GithubHelp logo

plzthx / github-starred-to-pinboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmchap/github-starred-to-pinboard

0.0 2.0 0.0 464 KB

Send starred github repos to pinboard

Python 100.00%

github-starred-to-pinboard's Introduction

Github Starred Repos to Pinboard Bookmarks

It turns recently starred repos from a Github account into bookmarks in Pinboard.

It makes the bookmark like this:

example bookmark

That is, it sets the bookmark title to the repo name followed by the short, one-liner repo description. It lists the languages used in the repo in order of bytes, too. Just for you. Because I like you. It also lists the as much of the readme file as will fit in Pinboard's description field.

Usage

Get your Github OAuth token from here.

Get your Pinboard API token from here.

If you already have some of these repos bookmarked, this script will not replace them. If you wish to change this, set the replace variable to no. Take note that even if replace is yes, the datetime on the bookmarks will not be altered.

The bookmarks will be tagged with the terms in the tags variable.

On first run, it creates a config file with the same base filename as you named this script. (If you didn't rename the script, it'll be called exporter.config) You can uncomment and fill in gh_username, gh_token, and pb_token if you do not want to create a config file.

Otherwise, run the script and follow the directions.

Requirements

python 2.6 - 2.7.5

Requests

Limitations

It only works for the 100 most recently starred repos. It works for any number of repos. Thanks, jdherg!

API calls are limited to 4103 characters which really cuts down on how much of the readme file is included in the description.

TODO

  • Make it work for folks who have more than 100 starred repos.
  • Make it fail more gracefully
    • Pinboard rate limit failure (once every 3 seconds) done.
    • Github rate limit failure (60 per hour unauthenticated or 5000 authenticated). The authenticated limit isn't a problem because the pinboard rate limit is already significantly lower: 3/second, or 1200/hour
  • Add an option to replace existing bookmarks with the original datetime
  • Check to ensure the entered github username exists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.