Skip to content
Scrapes StockX and outputs the user's sale history into a CSV file. Very useful come tax season
Branch: master
Clone or download
Pull request Compare This branch is 4 commits behind Sweetcharge:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Scrapes StockX and outputs the user's sale history into a CSV file. Very useful for come tax season. This was my first real project dealing with requests and JSON so my style of code may seem "amateur" but I'm still learning. Hopefully this makes everyone's lives easier! Just run script and all your sales are recorded on excel!

NOTE: In your spreadsheet, any red number means you LOST money through that transaction; you got a negative number.


  • Python 3
  • Requests module

Common errors

"Key error" Either you didn't put in your credentials in the script or you were sending too many requests to StockX within a short period of time (This is usually the case). Try again with a different IP or wait a couple of minutes.


  • Make sure you've installed everything you've needed to install; refer to the requirements.

  • Don't forget to add your credentials inside the script! This is super important or else the script wont run!

  • In order to run the script, for Mac users (should be the same for Window users too):

    1. In terminal type:

      python drag and drop the script in here

  • The created file will be called "StockX_Sales.csv"

  • The total profit will be at the bottom

You can’t perform that action at this time.