0

For some reason, I cannot render this webpage https://pa.parxcasino.com/kambiSportsbook.shtml#filter/ufc_mma using splash I tried all of the tips in the Splash FAQ here: https://splash.readthedocs.io/en/stable/faq.html#website-is-not-rendered-correctly .

I also figured it may be an issue with the content being in an iframe and tried using this answer Scrapy + Splash: scraping element inside inner html as a reference but I still can't seem to find the HTML I need in it either.

I am trying to get this section: enter image description here

Any tips would be greatly appreciated!

weston6142
  • 181
  • 14
  • 1
    I know you specifically ask for rendering the page using Splash, but if you are just after the data, you can use the API to get it - https://eu-offering.kambicdn.org/offering/v2018/parxuspa/listView/ufc_mma.json?lang=en_US&market=US&client_id=2&channel_id=1&ncid=1592554293710&useCombined=true – Tomáš Linhart Jun 19 '20 at 08:14
  • Where can I learn more on using this API? – weston6142 Jun 19 '20 at 12:13
  • Well, that's just what you can see in browser's developer tools. Open up the browser, open the developer tools and switch to XHR tab. Then visit the page and see what APIs it queries. – Tomáš Linhart Jun 19 '20 at 12:21
  • How can I grab this URL and parse it though using scrapy? – weston6142 Jun 21 '20 at 23:02
  • I actually understand how to parse it but is the only way to grab it by just using that exact URL? Is there a more flexible way to grab the JSON url using the base url? – weston6142 Jun 22 '20 at 00:32
  • For anyone interested, this video https://www.youtube.com/watch?v=X7nQ41NVPN0 had an amazing explanation of the process that really helped me out. – weston6142 Jun 22 '20 at 01:41

0 Answers0