andr3w321 / espn_scraper

Python package to scrape and save ESPN scoreboard data for major sports
MIT License
45 stars 12 forks source link

use new query string in url #2

Closed jake-small closed 4 months ago

jake-small commented 1 year ago

At some point, the query string for espn json data was changed from "xhr=1" to "_xhr=1". This PR is a quick fix to support the new url. Unfortunately this change won't work with older game ids as they still use "xhr=1".

I found out about the "xhr=1" to "_xhr=1" change from here: https://gist.github.com/akeaswaran/b48b02f1c94f873c6655e7129910fc3b?permalink_comment_id=4319893#gistcomment-4319893