Chris Seadon

Mix Engineer, Videographer and Developer

AboutBlogContact

CS2 Skin Scraper in Python

UPDATE: Unsurprisingly, the site has since updated and broken this tool. It's likely fixable pretty easily as the layout looks the same but I currently have no reason spend more time on it.

Original post:

Recently a friend of mine has been trying to aggregate up-to-date prices of all of the gun skins in Counter Strike 2, and floated the idea of using Python to scrape the data from the site CSGOStash.com. I thought I'd give him a helping hand and put something together using Python and the 'BeautifulSoup4' library.

Quite a simple program that just grabs the info and dumps it into a .json file for use elsewhere.

The code can be found here, in a repo hosted on GitHub.

Could be helpful to somebody!