Feb-03-2019, 05:06 PM
I write parser for https://www.oddsportal.com
See this url - https://www.oddsportal.com/soccer/englan...d-nNNqedbR
I faced with next problem. Need get urls from this block
How I can get all absolute urls from this menu?
If it is a long time to write all urls, can write only url from "Home/Away":"2nd Half", for example.
I think, this urls forming by JS (and Ajax mb) and I don't know, how I can walk on the urls.
See this url - https://www.oddsportal.com/soccer/englan...d-nNNqedbR
I faced with next problem. Need get urls from this block
How I can get all absolute urls from this menu?
If it is a long time to write all urls, can write only url from "Home/Away":"2nd Half", for example.
I think, this urls forming by JS (and Ajax mb) and I don't know, how I can walk on the urls.
def main(url): options = webdriver.ChromeOptions() options.add_argument('headless') driver = webdriver.Chrome(chrome_options=options) driver.get(url) def get_url(): base_url = 'https://www.oddsportal.com/soccer/england/premier-league/wolves-newcastle-utd-nNNqedbR' for i in ???: first_part = ??? second_part = ??? url = base_url + '#' + first_part + ';' + 'second_part' main(url)