os.path.isfile

2017-02-10 Thread eproser
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

Re: Obtain javascript result

2016-10-23 Thread eproser
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.

Re: Obtain javascript result

2016-10-21 Thread eproser
Many Thanks to everybody. -- https://mail.python.org/mailman/listinfo/python-list

Re: Obtain javascript result

2016-10-21 Thread eproser
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

Obtain javascript result

2016-10-21 Thread eproser
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

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

Beautifulsoap

2016-03-18 Thread eproser
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

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"