4 ms·
in python it would be like this (get BeautifulSoup first): -- import urllib2 from BeautifulSoup import BeautifulSoup ychtml = urllib2.urlopen('http://
by 3ds 17y ago
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