Hi experts,
I am having some difficulties in scraping from oddsportal.
I can go the the link : https://www.oddsportal.com/soccer/england/fa-cup/.
Then I can go into each match as below:
https://www.oddsportal.com/soccer/england/fa-cup/arsenal-manchester-city-nVR0LsGP/
The page mentioned above contain multiple tabs such as 1x2, home/away, AH, OU etc.
I want to go to AH. therefore I created click element to go into AH.
when I run the scraper, it does not really go into the AH table but only stay at 1x2 tab.
below is the code. my intention is to go to AH, under AH we have asian handicap -1.5 etc. I want to go into that and scrape the odds from different bookmarkers.
Thanks in advance.
I shall be very grateful if someone advises me.
Sitemap:
{"_id":"fa_asian","startUrl":["https://www.oddsportal.com/soccer/england/fa-cup/results/"],"selectors":[{"id":"Match","type":"SelectorLink","parentSelectors":["_root"],"selector":".name a","multiple":true,"delay":0},{"id":"date_time","type":"SelectorText","parentSelectors":["Match"],"selector":"p.date","multiple":false,"regex":"","delay":0},{"id":"result","type":"SelectorText","parentSelectors":["Match"],"selector":"p.result","multiple":false,"regex":"","delay":0},{"id":"ah-click","type":"SelectorElementClick","parentSelectors":["Match"],"selector":".table-header-light strong a","multiple":true,"delay":"100","clickElementSelector":".ul-nav strong span","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"odds_click","type":"SelectorElementClick","parentSelectors":["ah-click"],"selector":".table-header-light strong a","multiple":true,"delay":0,"clickElementSelector":"div:nth-of-type(n+10) a.more","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"get_odd","type":"SelectorTable","parentSelectors":["odds_click"],"selector":"div.table-container:nth-of-type(n+6) table","multiple":true,"columns":[{"header":"Bookmakers","name":"Bookmakers","extract":true},{"header":"Handicap","name":"Handicap","extract":true},{"header":"1","name":"Home_odds","extract":true},{"header":"2","name":"Away_odds","extract":true},{"header":"Payout","name":"Payout","extract":true}],"delay":0,"tableDataRowSelector":"tbody tr","tableHeaderRowSelector":"thead tr"}]}