Skip to content

sukidesuka/buff2steam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Special thanks to the generous sponsorship by:

logo

buff2steam

make money from buff.163.com

简体中文

Table of Contents

Table of contents generated with markdown-toc

requirements

python >= 3.7

pip install -r requirements.txt

cp config.sample.json config.json

usage

python -m buff2steam

config

config.json

{
    "main": {
        "game": "csgo",  // dota2
        "game_appid": "730",  // 570
        "accept_buff_threshold": 0.65,  // acceptable ratio
        "min_price": 500,  // CNY, 500 == 5 yuan
        "max_price": 30000  // CNY, 30000 == 300 yuan
    },
    "buff": {
        "requests_kwargs": {
            "headers": {
                "cookie": "session=1-GyCKVt_sSLoNtu2yeM9hY8FPeWTr8Q6ayOYIifqxKLM82044786689"
            }
        }
    },
    "steam": {
        "request_interval": 20,  // steam api request interval (in seconds)
        "requests_kwargs": {
            // if you dont need proxy then remove it
            "proxies": {
                "https": "http://127.0.0.1:7890"
            }
        }
    }
}

buff_session

session

Chrome -> F12 -> Network Tab -> Refresh webpage -> Doc filter -> Response Headers find session in Set-Cookie and paste it into config.json -> buff.requests_kwargs.headers.cookie

StarChart

starchart

license

buff2steam is open-source software licensed under the Unlicense License. See the LICENSE file for more information.

About

make money with buff.163.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%