Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created November 17, 2010 22:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpritchett/704194 to your computer and use it in GitHub Desktop.
Save dpritchett/704194 to your computer and use it in GitHub Desktop.
Use this as a cron job maybe?
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