Created
November 17, 2010 22:07
-
-
Save dpritchett/704194 to your computer and use it in GitHub Desktop.
Use this as a cron job maybe?
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 feedparser, re #feedparser available at http://feedparser.org/ | |
def search_fatwallet(keyword): | |
fw = feedparser.parse(r'http://feeds.feedburner.com/FatwalletHotDeals') | |
for entry in fw.entries: | |
if re.search(keyword, entry['title']): | |
print entry['title'], '\n', entry['feedburner_origlink'] | |
print '' | |
""" | |
>>> search_fatwallet('car') | |
www.RockAuto.com (Parts for cars)- immediate 5% discount | |
http://www.fatwallet.com/t/18/1044502 | |
$15 off $75 or $25 off $100 Victoria's Secret in store promotion + min. $10 Secret Reward card to redeem in Dec. | |
http://www.fatwallet.com/t/18/1044497 | |
Meijer $50 Giftcard, get $5 off with coupon instore 11/20 only | |
http://www.fatwallet.com/t/18/1044414 | |
Del Taco gift cards + free food coupon + 1/2 off coupons = more food in your tummy (YMMV?) | |
http://www.fatwallet.com/t/18/1044387 | |
Ladies, dazzle your man with this party dress, was $60 now $8.40 shipped AC with Kohl's card | |
http://www.fatwallet.com/t/18/1044314 | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment