2 Star 1 Fork 1

Charles/github_ClassmateLin_jd_scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jr_money_tree_collect.py 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
ClassmateLin 提交于 2021-09-02 09:53 +08:00 . 恢复
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
# @Time : 2021/7/29 9:37 上午
# @File : jr_money_tree_collect.py
# @Project : jd_scripts
# @Cron : 35 */1 * * *
# @Desc : 京东APP->我的->摇钱树, 定时收金果
import aiohttp
from utils.console import println
from jr_money_tree import JrMoneyTree
from utils.process import process_start
class JrMoneyTreeCollect(JrMoneyTree):
"""
金果摇钱树收金果
"""
async def run(self):
"""
:return:
"""
async with aiohttp.ClientSession(cookies=self._cookies, headers=self.headers) as session:
is_success = await self.login(session)
if not is_success:
println('{}, 登录失败, 退出程序...'.format(self.account))
await self.harvest(session) # 收金果
if __name__ == '__main__':
process_start(JrMoneyTreeCollect, '金果摇钱树收金果', 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

搜索帮助