Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangmingzhe0928 committed Oct 16, 2020
1 parent 7f22661 commit ceaf4e0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# hpv4g

- use
```
hpv4g.py tkstring cookiestring
# 使用-h参看可选参数
```
- 执行秒杀 使用-h参看可选参数
```
# tkstring cookiestring 为抓包得到的tk cookie
hpv4g.py tkstring cookiestring
```
- 扫描所有城市疫苗列表(没啥实际X用) 生成本地cache/vaccines.json文件
```
# tkstring cookiestring 为抓包得到的tk cookie
scan_vaccine.py tkstring cookiestring
```
7 changes: 6 additions & 1 deletion miaomiao.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@

# url
URLS = {
# 获取代理IP
"IP_PROXY": "https://ip.jiangxianli.com/api/proxy_ips",
# 服务器当前时间戳
"SERVER_TIME": "https://miaomiao.scmttec.com/seckill/seckill/now2.do",
# 疫苗列表
"VACCINE_LIST": "https://miaomiao.scmttec.com/seckill/seckill/list.do",
# 校验库存
"CHECK_STOCK": "https://miaomiao.scmttec.com/seckill/seckill/checkstock2.do",
# 接种人信息
"USER_INFO": "https://miaomiao.scmttec.com/seckill/linkman/findByUserId.do",
# 秒杀疫苗
"SEC_KILL": "https://miaomiao.scmttec.com/seckill/seckill/subscribe.do"
}

Expand Down Expand Up @@ -198,7 +204,6 @@ def init_data_json(self):
"""
初始化疫苗数据和接种人数据
缓存本地
:return:
"""
data_dict = {'user': self._get_user(), 'vaccines': self._get_vaccine_list()}
for k, v in data_dict.items():
Expand Down
1 change: 1 addition & 0 deletions scan_vaccine.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""
扫描所有城市
缓存所有有疫苗的城市数据
没啥实际X用
"""

# 区域编码
Expand Down

0 comments on commit ceaf4e0

Please sign in to comment.