Created
November 10, 2011 20:12
-
-
Save mduvall/1356033 to your computer and use it in GitHub Desktop.
just grab all your saved stories on reddit with python wrapper lib
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
import reddit, getpass | |
if __name__ == "__main__": | |
r = reddit.Reddit(user_agent="test") | |
user_name = raw_input("User name: ") | |
password = getpass.getpass("Password: ") | |
r.login(user=user_name,password=password) | |
saved_links = r.get_saved_links() | |
for link in saved_links: | |
print "Title: " + link.title | |
print "\tLink: " + link.url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment