This will scrape any javascript file from my.callofduty.com / profile.callofduty.com in order to make the process of finding API routes easier.
ATVI/COD like to move the routes used for their private API around different javascript files on each deployment. Running this scraper will hopefully make searching for routes easier for the end user.
-
Install typescript globally
npm i -g typescript
-
Install local dependencies
npm i puppeteer @types/puppeteer
-
Run the script you want
npm run start
npm run test
-
All Done!