2 Star 1 Fork 1

Charles/github_ClassmateLin_jd_scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_planting_bean_collect.py 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
ClassmateLin 提交于 2021-09-02 09:53 +08:00 . 恢复
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
# @Time : 2021/7/31 下午9:22
# @Project : jd_scripts
# @File : jd_planting_bean_collect.py
# @Cron : 40 */2 * * *
# @Desc : 京东APP->我的->签到领豆->种豆得豆, 定时收取营养液
import aiohttp
from utils.console import println
from utils.process import process_start
from jd_planting_bean import JdPlantingBean
class JdPlantingBeanCollect(JdPlantingBean):
"""
种豆得豆收营养夜
"""
async def run(self):
"""
:return:
"""
async with aiohttp.ClientSession(headers=self.headers, cookies=self.cookies) as session:
self.message = None
is_success = await self.planting_bean_index(session)
if not is_success:
println('{}, 无法获取活动数据!'.format(self.account))
return
await self.receive_nutrient(session)
await self.collect_nutriments(session)
self.message = None
if __name__ == '__main__':
process_start(JdPlantingBeanCollect, '种豆得豆收营养液', help=False)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ritaswc/ClassmateLin_jd_scripts.git
git@gitee.com:ritaswc/ClassmateLin_jd_scripts.git
ritaswc
ClassmateLin_jd_scripts
github_ClassmateLin_jd_scripts
develop

搜索帮助