I would like to parse an HTML file with Python, and the module I am using is BeautifulSoup.
It is said that the function find_all
is the same as findAll
. I've tried both of them, but I believe they are different:
import urllib, urllib2, cookielib
from BeautifulSoup import *
site = "http://share.dmhy.org/topics/list?keyword=TARI+TARI+team_id%3A407"
rqstr = urllib2.Request(site)
rq = urllib2.urlopen(rqstr)
fchData = rq.read()
soup = BeautifulSoup(fchData)
t = soup.findAll('tr')
Can anyone tell me the difference?