Skip to content

Instantly share code, notes, and snippets.

@csu
Forked from ChewingPencils/rename_pinboard_tag.py
Last active January 2, 2016 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csu/8241436 to your computer and use it in GitHub Desktop.
Save csu/8241436 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import urllib2
import pinboard
pinuser = raw_input('Pinboard username: ')
pinpasswd = raw_input('Pinboard password: ')
oldtag = raw_input('Tag to rename: ')
newtag = raw_input('Rename tag to: ')
p = pinboard.open(pinuser, pinpasswd)
p.rename_tag(oldtag, newtag)
print "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment