Re: Beautifulsoap

2016-03-19 Thread Joel Goldstick
On Wed, Mar 16, 2016 at 9:36 AM, wrote: > Greetings NG > > please I need a little help. > > I have this bs object tag: > > > > I want extract 5.69 > > Some have pity of me :-) > > Thanks > > > Show the code you have, and what isn't working. Which verision of python and BS > -- > https://mail.p

Re: Beautifulsoap

2016-03-19 Thread eproser
Solved: odds = soup.findAll('td',{'class':'odds'}) for odd in odds: print odd['data-odd'] Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Beautifulsoap

2016-03-19 Thread eproser
Thank you Peter, good info. -- https://mail.python.org/mailman/listinfo/python-list

Re: Beautifulsoap

2016-03-19 Thread Peter Otten
epro...@gmail.com wrote: > > Yes, for my hobby i want extract odds. > > The code is: > > from bs4 import BeautifulSoup > > import urllib2 > > url = > "http://www.betexplorer.com/soccer/england/premier-league-2014-2015/results/"; > > content = urllib2.urlopen(url).read() > > soup = Beautiful

Re: Beautifulsoap

2016-03-18 Thread eproser
Yes, for my hobby i want extract odds. The code is: from bs4 import BeautifulSoup import urllib2 url = "http://www.betexplorer.com/soccer/england/premier-league-2014-2015/results/"; content = urllib2.urlopen(url).read() soup = BeautifulSoup(content) odds = soup.find_all("td", class_="odds"