Skip to content

Instantly share code, notes, and snippets.

@hikoz
Created June 7, 2010 08:38
Show Gist options
  • Save hikoz/428380 to your computer and use it in GitHub Desktop.
Save hikoz/428380 to your computer and use it in GitHub Desktop.
import scrapemark # http://arshaw.com/scrapemark/
scrapemark.user_agent = 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)'
pattern = '<div id="topicsfb">{*<li>{{[]}}</li>*}</div>'
for i in scrapemark.scrape(pattern, url='http://www.yahoo.co.jp/'):
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment