Hello NG.
I'm new in Python for fun.
I have a html page (I load it by BeautifulSoap) that contain
also this javascript code:
...
$(document).ready(function() {
matchdetails_init('rLu2Xsdi', '1x2');
});
...
Please, can You me to aim on the right way
to obtain into a Python data structure
Yes,
the page is http://www.betexplorer.com/next/soccer/
and You have to open any match You want.
This pop-up new windows with match detail and odds
(if present).
I try to extract home team, away team, results, and
bet365's bookmaker odds.
I can't continue in my fun analyses because the odds
Many Thanks to everybody.
--
https://mail.python.org/mailman/listinfo/python-list
Ok, I solved to this way:
from bs4 import BeautifulSoup
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('http://www.betexplorer.com/soccer/russia/youth-\league/matchdetails.php?matchid=rLu2Xsdi')
pg_src = driver.page_source
driver.close()
soup = BeautifulSoup(pg_src, 'html.
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"
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
--
https://mail.python.org/mailman/listinfo/python-list
Thank you Peter, good info.
--
https://mail.python.org/mailman/listinfo/python-list
Solved:
odds = soup.findAll('td',{'class':'odds'})
for odd in odds:
print odd['data-odd']
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Hello NG
Python 3.5.2
Windows 10
os.path.isfile() no recognise file with double dot?
eg. match.cpython-35.pyc
Please somebody know something about that?
Thank You in advance
--
https://mail.python.org/mailman/listinfo/python-list