Downloads a player's market history from theshownation.com
- Log in and browse to https://mlb21.theshow.com/orders/completed_orders
- Open up developer tools in your browser (F12 on Windows)
- Click on the network tab of developer tools
- Scroll down and select the second page
- Right click on the request that says /completed_orders?page=2&
- Select Copy > Copy as cURL (cmd)
- Navigate to https://curl.trillworks.com/
- Paste the curl command into the window
- Copy the Python headers section.
- You only need the header information. Overwrite the headers in the code on line 68 and you will be good to go. This contains your authentication token and cookies
- Update the other variables on lines 82-85. You will need PostgreSQL installed. If you want to ignore the database part, put # in front of those lines if they are not already there
- Run code!