Special thanks to the generous sponsorship by:
make money from buff.163.com
Table of contents generated with markdown-toc
python >= 3.7
pip install -r requirements.txt
cp config.sample.json config.json
python -m buff2steam
{
"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"
}
}
}
}
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
buff2steam is open-source software licensed under the Unlicense License. See the LICENSE file for more information.