Closed cg86x closed 1 year ago
FWIW I confirmed via https://web.archive.org/ that the robots.txt file has not changed recently.
Solution that seemed to work for me was adding a header so httr is not treated as a bot. Assume the same would work for rvest and worldfootballR functions but haven't confirmed.
Solution that seemed to work for me was adding a header so httr is not treated as a bot. Assume the same would work for rvest and worldfootballR functions but haven't confirmed.
this seems like it's probably the right solution. we've had some issues in the past with the default httr header being blocked, although I think it was for fbref before.
Solution that seemed to work for me was adding a header so httr is not treated as a bot. Assume the same would work for rvest and worldfootballR functions but haven't confirmed. https://stackoverflow.com/questions/72568624/r-programming-download-file-returning-403-forbidden-error
this seems like it's probably the right solution. we've had some issues in the past with the default httr header being blocked, although I think it was for fbref before.
Yeah spot on, it was for fbref... we also struggled with what to set the user agent - in the SO example provided they use 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36'
, but would we want to hard set that under the hood of the tm_
functions @tonyelhabr?
Solution that seemed to work for me was adding a header so httr is not treated as a bot. Assume the same would work for rvest and worldfootballR functions but haven't confirmed. https://stackoverflow.com/questions/72568624/r-programming-download-file-returning-403-forbidden-error
this seems like it's probably the right solution. we've had some issues in the past with the default httr header being blocked, although I think it was for fbref before.
Yeah spot on, it was for fbref... we also struggled with what to set the user agent - in the SO example provided they use
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36'
, but would we want to hard set that under the hood of thetm_
functions @tonyelhabr?
I think we can use .load_page()
to solve our problems. See #283.
@cg86x can you confirm if you're now able to use the tm_
functions now? No changes pushed to master
so no need to update your worldfootballR
version
Closing this now as I'm not experiencing these issues any longer using the most recent version (0.6.3.0010
)
Transfermarkt functions are returning no data or causing errors. Scraping transfermarkt with my own scripts encounters the same issues.