Skip to content

Instantly share code, notes, and snippets.

@vincentntang
Forked from ChewingPencils/rename_pinboard_tag.py
Created September 20, 2016 14:23
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 vincentntang/77a60c23b0d5e28e32d1a02e02b81419 to your computer and use it in GitHub Desktop.
Save vincentntang/77a60c23b0d5e28e32d1a02e02b81419 to your computer and use it in GitHub Desktop.
Rename Pinboard Tag
#!/usr/bin/env python
# A quick and dirty script to rename a pinboard.in tag.
# I'll probably update this become a proper command line app one day
import urllib2
import pinboard
pinuser = ""
pinpasswd = ""
p = pinboard.open(pinuser, pinpasswd)
# Enter in the tag information below
p.rename_tag(old="old-tag", new="new_tag")
print "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment