Skip to content

Instantly share code, notes, and snippets.

@gregimba
Created June 7, 2013 22:39
Show Gist options
  • Save gregimba/5732897 to your computer and use it in GitHub Desktop.
Save gregimba/5732897 to your computer and use it in GitHub Desktop.
kipptmark.py takes a list of urls and imports them into https://kippt.com/ one url per line!
from json import dumps, loads
from kippt.kippt import Kippt
user = Kippt('my_username', password='my_password') # or.. user = Kippt('my_username', api_token='my_crazy_long_api_token')
#Take Urls and create a list
urls = open('url.txt', 'r')
urls = urls.read()
urlslist = urls.split('\n')
#Iterate over the list
for url in urlslist:
user.clips().create(url)
print 'Sucess!, Clip added'
http://127.0.0.1/
http://google.com/
http://twitter.com/
http://facebook.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment