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
![[Image: RBcgO.png]](https://i.stack.imgur.com/RBcgO.png)
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.
![[Image: 3TZ6P.png]](https://i.stack.imgur.com/3TZ6P.png)
![[Image: z5jOF.png]](https://i.stack.imgur.com/z5jOF.png)
See this url - https://www.oddsportal.com/soccer/englan...d-nNNqedbR
I faced with next problem. Need get urls from this block
![[Image: RBcgO.png]](https://i.stack.imgur.com/RBcgO.png)
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.
![[Image: 3TZ6P.png]](https://i.stack.imgur.com/3TZ6P.png)
![[Image: z5jOF.png]](https://i.stack.imgur.com/z5jOF.png)
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)
