ynvaser / deckscraper

Magic the Gathering (MTG) reverse deck search tool.
19 stars 0 forks source link

Bypassing moxfield's scraping detector, a solution #8

Closed thebear132 closed 6 months ago

thebear132 commented 6 months ago

I have a similiar program which also downloads decks from Moxfield, here is how to bypass it if you are interested! Any questions, feel free to message me https://github.com/thebear132/MTG-To-XMage/commit/0272d5914efcdc7c5f1ceaed27b21409c7ac02a8

thebear132 commented 6 months ago

Check the changes in program.py, just change your user agent when sending the request from (in my case) "python-requests..." to some random valid user agent

ynvaser commented 6 months ago

Thanks for the suggestion, @thebear132, i'll take a look once I can pick this up again.