Skip to content

Instantly share code, notes, and snippets.

@Der-Eddy
Created April 21, 2015 21:26
Show Gist options
  • Save Der-Eddy/87a2c8c26aa6f559f3c9 to your computer and use it in GitHub Desktop.
Save Der-Eddy/87a2c8c26aa6f559f3c9 to your computer and use it in GitHub Desktop.
Posts newest Sales to subreddit /r/Eddy_Sales
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