Created
April 21, 2015 21:26
-
-
Save Der-Eddy/87a2c8c26aa6f559f3c9 to your computer and use it in GitHub Desktop.
Posts newest Sales to subreddit /r/Eddy_Sales
This file contains hidden or 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 praw | |
import feedparser | |
r = praw.Reddit(user_agent="linux:Eddy_Sales:v1.0 (by /u/dereddy)") | |
r.login("EddyBot", "password") | |
rss = "http://isthereanydeal.com/rss/waitlist/0q46u:5cf44d74d6756256c395c0b56879111d" | |
feeds = feedparser.parse(rss) | |
for feed in feeds["entries"]: | |
for item in feed: | |
print (item) | |
print (feed["title"]) | |
print (feed["link"]) | |
r.submit("Eddy_Sales", feed["title"], url=feed["link"], resubmit=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment