Created
June 7, 2013 22:39
-
-
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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