Skip to content

makis-san/empire-inv-fetch-to-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch CSGOEmpire Deposit Inventory to Google Sheet

GitHub license

I literally did this in 30 minutes and i'm actually planning to add more features. Please be patient 💙

Dependencies

package dev version
axios ^0.21.1
dotenv ^10.0.0
googleapis ^80.1.0
@types/axios ^0.14.0
@types/node ^15.14.0
ts-node ^10.0.0
ts-node ^4.3.5

How to use

  1. Get Empire Cookie: Navigate to empire deposit page with google devtools, open Network tab and search for request from https://csgoempire.com/api/v2/inventory/user?app=730.   Head down on response headers and copy cookie header. This is your EMPIRE_AUTH_COOKIE enviroment variable.

  2. Configure google api and google sheet.

  3. Have fun

yarn && yarn start

Commandline Args

key value
-dev enable console.log
-noGoogle the application will only fetch data from csempire without updating google sheet

Env

key value
GOOGLE_APPLICATION_CREDENTIALS path to google api client credentials
SHEET_ID google sheets id
PRICE_RANGE range on sheet that stores the csempire price
TITLE_RANGE range on sheet that stores item name
EMPIRE_AUTH_COOKIE csempire user cookie

About

Get inventory value from CSGO EMPIRE and write on google sheet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published