News for hackers. Stuff that matters.
Re:Using YQL to grab HN links by 3ds on Sunday May 03, 2009 @08:28AM (#590805)
in python it would be like this (get BeautifulSoup first):

--

  import urllib2

  from BeautifulSoup import BeautifulSoup

  ychtml = urllib2.urlopen('http://news.ycombinator.com/).read()

  for tdtitle in BeautifulSoup(ychtml).findAll("td", "title"):

    print tdtitle.a

There are no comments on this comment yet.