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
Solved:
odds = soup.findAll('td',{'class':'odds'})
for odd in odds:
print odd['data-odd']
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Thank you Peter, good info.
--
https://mail.python.org/mailman/listinfo/python-list
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
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"