This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:YukiCoco/CheapSteam
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 配置文件详解 | ||
## 配置文件示例 | ||
````json | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Warning", | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting.Lifetime": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"ProxyUrl": "", | ||
"BuffUrl": "https://buff.163.com/api/market/goods?game=csgo&min_price=20", | ||
"BuffSession": "", | ||
"SteamCookies": "", | ||
"MaxThread": 4, | ||
"MinSellCount": 30, | ||
"ConnectionString": "Data Source=ChpStmScraper.db", | ||
"IsEnableScraper" : true, | ||
"ListeningUrls": [ | ||
"http://127.0.0.1:1272" | ||
] | ||
} | ||
```` | ||
## 字段解释 | ||
`ProxyUrl`: HTTP代理地址,留空则不使用 | ||
`BuffUrl`: 爬取 BUFF 的起始地址,可以填入自定义条件,如 `https://buff.163.com/api/market/goods?game=dota2&min_price=20` 爬取 DOTA2 的饰品,最小价格为20 | ||
`MaxThread`: 最大爬取线程,调高可以加快速度,但太快可能会被 Steam Ban IP | ||
`MinSellCount`: 在 BUFF 的最少销售数,低于此值不会进入数据库 | ||
`ConnectionString`: 数据库连接字符串,你可以把数据库放在其他地方,然后来修改此值 | ||
`IsEnableScraper`: 是否开启爬虫,可以关闭此值,如果你想看之前数据里存的数据的话 | ||
`ListeningUrls`: 本地监听地址,如果要开多个爬虫需要修改此值,以防止端口冲突 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Quick Start | ||
## 获得 BUFF 和 STEAM 的信息 | ||
|
||
### BUFF Session | ||
|
||
以 Chrome 为例,登录 BUFF 后点左上角的小锁,再点 Cookie 就能找到了 | ||
|
||
![2020-12-13_18-08.png](https://cdnimg.kurisu.moe/images/2020/12/13/2020-12-13_18-08.png) | ||
|
||
|
||
### STEAM Cookie | ||
|
||
登录 STEAM 市场后,随便打开一个物品,如 [这个](https://steamcommunity.com/market/listings/730/AUG%20%7C%20Tom%20Cat%20%28Field-Tested%29) 然后按 F12 调出开发者模式. | ||
|
||
选择网络→点下面任意一个新建立的连接→Request Headers→全部复制 Cookie 这个 Header. | ||
|
||
![Untitled.png](https://cdnimg.kurisu.moe/images/2020/12/13/Untitled.png) | ||
|
||
## 修改配置文件 | ||
|
||
1. 修改 `appsettings.json` 文件,找到 `BuffSession` 与 `SteamCookies` 字段,分别修改为 BUFF Cookie 里的 `Session` 和 Steam 市场的 `Cookie` Header. | ||
2. 如果你在中国大陆无法访问 steam 社区,可以考虑开启加速器加速 Steam 社区.或者使用配置文件里的 `ProxyUrl` 字段,填写为你科学上网软件提供的本地 HTTP 代理地址,比如 [`http://127.0.0.1:7890`](http://127.0.0.1:7890/) | ||
3. 打开 `ChpStmScraper.WebApi` 即可 | ||
4. 更详细的配置文件详解请查看 [这里](https://github.com/YukiCoco/CheapSteam/blob/master/Config.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# CheapSteam | ||
Cheap Steam 为您提供 STEAM 与 BUFF 的饰品价格对比数据,您可以从此快速找出价格合适的饰品,在 BUFF 购买然后在 Steam 市场出售,以此赚取大额的差价。 | ||
这世上本没有倒狗,亦或者人人都是倒狗。 | ||
|
||
## Feature | ||
+ 使用简单 | ||
+ 多线程高速爬取数据 | ||
+ 多数据过滤条件,快速找到合适的饰品 | ||
|
||
## Usage | ||
[Guide](https://github.com/YukiCoco/CheapSteam/blob/master/Guide.md) | ||
|
||
## Download | ||
[Release](https://github.com/YukiCoco/CheapSteam/releases) | ||
|
||
## Demo | ||
![2020-12-13_00-57_1.png](https://cdnimg.kurisu.moe/images/2020/12/13/2020-12-13_00-57_1.png) | ||
|
||
## LICENSE | ||
LICENSE under GNU General Public License v3.0. |