Skip to content

csgocollection/csgostash-item-scraper

Repository files navigation

CSGO Stash Item Scraper

“maven-build” “license”

Java based scraper for https://csgostash.com that can extract skin meta information about in-game items in Counter-Strike: Global Offensive. Built utilizing the RxJava library.

Usage

The project is designed for concurrent and functional use and therefore uses the RxJava library due to the nature of how https://csgocollection.com is consuming the data.

var conf = new ItemScraperConfig(Fixtures.CSGOSTASH_HOST);
Observable<Item> items = new RxJavaItemScraperExecutor(new DocumentItemScraper(), conf)
    .execute();

You can avoid the overhead of the RxJava library by using the ItemScraperExecutorFacade API (WIP).

Note that the API is in the early phase, and breaking changes can occur until the first release. Currently, the priority is to obtain the data needed to continue development with https://csgocollection.com. Still, people can feel free to contribute or create issues.

Item Properties

The following properties are currently extracted from the website:

Field Data Type Implemented Tested
name String
description String
flavorText String
exteriorMeta ExteriorMeta
condition Condition
modifier Modifier
collections Set
finishStyle String
finishCatalog String
floatRange FloatRange
floatRangeByCondition Map
priceRange PriceRange
priceByCondition Map
priceByConditionWithModifiers Map
inspectLinks Set
texturePatternLink String
previewVideoUrl String
phases Set

Item Types

The following item types are currently supported:

Item Type Implemented Tested
WEAPON
GLOVE
STICKER
AGENT
PIN

License

The MIT License.