mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 21:58:03 +08:00
移除企鹅读书
This commit is contained in:
parent
0592a47ede
commit
1ea70a9016
1
.github/workflows/deploy_tencent_scf.yml
vendored
1
.github/workflows/deploy_tencent_scf.yml
vendored
@ -46,7 +46,6 @@ jobs:
|
|||||||
MUSIC163_ACCOUNT_LIST: ${{secrets.MUSIC163_ACCOUNT_LIST}}
|
MUSIC163_ACCOUNT_LIST: ${{secrets.MUSIC163_ACCOUNT_LIST}}
|
||||||
XMLY_COOKIE_LIST: ${{secrets.XMLY_COOKIE_LIST}}
|
XMLY_COOKIE_LIST: ${{secrets.XMLY_COOKIE_LIST}}
|
||||||
ONEPLUSBBS_COOKIE_LIST: ${{secrets.ONEPLUSBBS_COOKIE_LIST}}
|
ONEPLUSBBS_COOKIE_LIST: ${{secrets.ONEPLUSBBS_COOKIE_LIST}}
|
||||||
QQREAD_ACCOUNT_LIST: ${{secrets.QQREAD_ACCOUNT_LIST}}
|
|
||||||
FMAPP_ACCOUNT_LIST: ${{secrets.FMAPP_ACCOUNT_LIST}}
|
FMAPP_ACCOUNT_LIST: ${{secrets.FMAPP_ACCOUNT_LIST}}
|
||||||
BAIDU_URL_SUBMIT_LIST: ${{secrets.BAIDU_URL_SUBMIT_LIST}}
|
BAIDU_URL_SUBMIT_LIST: ${{secrets.BAIDU_URL_SUBMIT_LIST}}
|
||||||
TIEBA_COOKIE_LIST: ${{secrets.TIEBA_COOKIE_LIST}}
|
TIEBA_COOKIE_LIST: ${{secrets.TIEBA_COOKIE_LIST}}
|
||||||
|
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -44,7 +44,6 @@ jobs:
|
|||||||
MUSIC163_ACCOUNT_LIST: ${{secrets.MUSIC163_ACCOUNT_LIST}}
|
MUSIC163_ACCOUNT_LIST: ${{secrets.MUSIC163_ACCOUNT_LIST}}
|
||||||
# XMLY_COOKIE_LIST: ${{secrets.XMLY_COOKIE_LIST}}
|
# XMLY_COOKIE_LIST: ${{secrets.XMLY_COOKIE_LIST}}
|
||||||
ONEPLUSBBS_COOKIE_LIST: ${{secrets.ONEPLUSBBS_COOKIE_LIST}}
|
ONEPLUSBBS_COOKIE_LIST: ${{secrets.ONEPLUSBBS_COOKIE_LIST}}
|
||||||
# QQREAD_ACCOUNT_LIST: ${{secrets.QQREAD_ACCOUNT_LIST}}
|
|
||||||
FMAPP_ACCOUNT_LIST: ${{secrets.FMAPP_ACCOUNT_LIST}}
|
FMAPP_ACCOUNT_LIST: ${{secrets.FMAPP_ACCOUNT_LIST}}
|
||||||
BAIDU_URL_SUBMIT_LIST: ${{secrets.BAIDU_URL_SUBMIT_LIST}}
|
BAIDU_URL_SUBMIT_LIST: ${{secrets.BAIDU_URL_SUBMIT_LIST}}
|
||||||
TIEBA_COOKIE_LIST: ${{secrets.TIEBA_COOKIE_LIST}}
|
TIEBA_COOKIE_LIST: ${{secrets.TIEBA_COOKIE_LIST}}
|
||||||
|
40
.github/workflows/qqread.yml
vendored
40
.github/workflows/qqread.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: 企鹅读书
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '*/11 * * * * '
|
|
||||||
watch:
|
|
||||||
types: [ started ]
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: 'Set up Python'
|
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
|
||||||
python-version: 3.7
|
|
||||||
|
|
||||||
- name: 'Install requirements'
|
|
||||||
run: pip install -r ./requirements.txt
|
|
||||||
|
|
||||||
- name: '运行【企鹅读书】'
|
|
||||||
run: python3 index.py
|
|
||||||
env:
|
|
||||||
IS_GITHUB_ACTION: true
|
|
||||||
ONLY_MESSAGE: qqread
|
|
||||||
DINGTALK_SECRET: ${{ secrets.DINGTALK_SECRET }}
|
|
||||||
DINGTALK_ACCESS_TOKEN: ${{secrets.DINGTALK_ACCESS_TOKEN}}
|
|
||||||
SCKEY: ${{secrets.SCKEY}}
|
|
||||||
QMSG_KEY: ${{secrets.QMSG_KEY}}
|
|
||||||
TG_BOT_TOKEN: ${{secrets.TG_BOT_TOKEN}}
|
|
||||||
TG_USER_ID: ${{secrets.TG_USER_ID}}
|
|
||||||
COOLPUSHSKEY: ${{secrets.COOLPUSHSKEY}}
|
|
||||||
COOLPUSHQQ: ${{secrets.COOLPUSHQQ}}
|
|
||||||
COOLPUSHWX: ${{secrets.COOLPUSHWX}}
|
|
||||||
COOLPUSHEMAIL: ${{secrets.COOLPUSHEMAIL}}
|
|
||||||
QQREAD_ACCOUNT_LIST: ${{secrets.QQREAD_ACCOUNT_LIST}}
|
|
@ -49,7 +49,6 @@
|
|||||||
|签到|V2EX|每日签到|每天一次|
|
|签到|V2EX|每日签到|每天一次|
|
||||||
|签到|咔叽网单|每日签到|每天一次|
|
|签到|咔叽网单|每日签到|每天一次|
|
||||||
|羊毛|喜马拉雅极速版|金币获取|30分钟一次|
|
|羊毛|喜马拉雅极速版|金币获取|30分钟一次|
|
||||||
|羊毛|企鹅读书|金币获取|11分钟一次|
|
|
||||||
|其他|百度站点|提交网站页面供百度收录|每天一次|
|
|其他|百度站点|提交网站页面供百度收录|每天一次|
|
||||||
|其他|每日天气预报|获取指定的多个城市天气信息|每天一次|
|
|其他|每日天气预报|获取指定的多个城市天气信息|每天一次|
|
||||||
|其他|每日一句|从词霸中获取每日一句,带英文|每天一次|
|
|其他|每日一句|从词霸中获取每日一句,带英文|每天一次|
|
||||||
|
@ -71,142 +71,6 @@
|
|||||||
"oneplusbbs_cookie": "帐号2 cookie"
|
"oneplusbbs_cookie": "帐号2 cookie"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"QQREAD_ACCOUNT_LIST": [
|
|
||||||
{
|
|
||||||
"qqread_bodys": {
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"qqread_timeurl": "https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1",
|
|
||||||
"qqread_headers": {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"qqread_bodys": {
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"qqread_timeurl": "https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1",
|
|
||||||
"qqread_headers": {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"BAIDU_URL_SUBMIT_LIST": [
|
"BAIDU_URL_SUBMIT_LIST": [
|
||||||
{
|
{
|
||||||
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||||
@ -258,7 +122,23 @@
|
|||||||
"data": "simCount=1&version=iphone_c@8.0100&mobile=xxxxxx&netWay=wifi&isRemberPwd=false&appId=xxxxxx&deviceId=xxxxxx&pip=192.168.1.1&password=xxxxxx&deviceOS=14.3&deviceBrand=iphone&deviceModel=iPhone&remark4=&keyVersion=2&deviceCode=xxxxxx"
|
"data": "simCount=1&version=iphone_c@8.0100&mobile=xxxxxx&netWay=wifi&isRemberPwd=false&appId=xxxxxx&deviceId=xxxxxx&pip=192.168.1.1&password=xxxxxx&deviceOS=14.3&deviceBrand=iphone&deviceModel=iPhone&remark4=&keyVersion=2&deviceCode=xxxxxx"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"data": "账号2 参数"
|
"data": "帐号2 信息"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"V2EX_COOKIE_LIST": [
|
||||||
|
{
|
||||||
|
"v2ex_cookie": "帐号1 cookie"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"v2ex_cookie": "帐号2 cookie"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"WWW2NZZ_COOKIE_LIST": [
|
||||||
|
{
|
||||||
|
"www2nzz_cookie": "帐号1 cookie"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"www2nzz_cookie": "帐号2 cookie"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -19,7 +19,6 @@ if [[ $CITY_NAME_LIST ]]; then echo "CITY_NAME_LIST 变量存在,并成功赋
|
|||||||
if [[ $MOTTO ]]; then echo "MOTTO 变量存在,并成功赋值" ;else MOTTO=false; fi;
|
if [[ $MOTTO ]]; then echo "MOTTO 变量存在,并成功赋值" ;else MOTTO=false; fi;
|
||||||
if [[ $XMLY_COOKIE_LIST ]]; then echo "XMLY_COOKIE_LIST 变量存在,并成功赋值" ;else XMLY_COOKIE_LIST=[]; fi;
|
if [[ $XMLY_COOKIE_LIST ]]; then echo "XMLY_COOKIE_LIST 变量存在,并成功赋值" ;else XMLY_COOKIE_LIST=[]; fi;
|
||||||
if [[ $ONEPLUSBBS_COOKIE_LIST ]]; then echo "ONEPLUSBBS_COOKIE_LIST 变量存在,并成功赋值" ;else ONEPLUSBBS_COOKIE_LIST=[]; fi;
|
if [[ $ONEPLUSBBS_COOKIE_LIST ]]; then echo "ONEPLUSBBS_COOKIE_LIST 变量存在,并成功赋值" ;else ONEPLUSBBS_COOKIE_LIST=[]; fi;
|
||||||
if [[ $QQREAD_ACCOUNT_LIST ]]; then echo "QQREAD_ACCOUNT_LIST 变量存在,并成功赋值" ;else QQREAD_ACCOUNT_LIST=[]; fi;
|
|
||||||
if [[ $FMAPP_ACCOUNT_LIST ]]; then echo "FMAPP_ACCOUNT_LIST 变量存在,并成功赋值" ;else FMAPP_ACCOUNT_LIST=[]; fi;
|
if [[ $FMAPP_ACCOUNT_LIST ]]; then echo "FMAPP_ACCOUNT_LIST 变量存在,并成功赋值" ;else FMAPP_ACCOUNT_LIST=[]; fi;
|
||||||
if [[ $TIEBA_COOKIE_LIST ]]; then echo "TIEBA_COOKIE_LIST 变量存在,并成功赋值" ;else TIEBA_COOKIE_LIST=[]; fi;
|
if [[ $TIEBA_COOKIE_LIST ]]; then echo "TIEBA_COOKIE_LIST 变量存在,并成功赋值" ;else TIEBA_COOKIE_LIST=[]; fi;
|
||||||
if [[ $BILIBILI_COOKIE_LIST ]]; then echo "BILIBILI_COOKIE_LIST 变量存在,并成功赋值" ;else BILIBILI_COOKIE_LIST=[]; fi;
|
if [[ $BILIBILI_COOKIE_LIST ]]; then echo "BILIBILI_COOKIE_LIST 变量存在,并成功赋值" ;else BILIBILI_COOKIE_LIST=[]; fi;
|
||||||
@ -48,7 +47,6 @@ JSONSTR="{
|
|||||||
\"MUSIC163_ACCOUNT_LIST\": ${MUSIC163_ACCOUNT_LIST},
|
\"MUSIC163_ACCOUNT_LIST\": ${MUSIC163_ACCOUNT_LIST},
|
||||||
\"XMLY_COOKIE_LIST\": ${XMLY_COOKIE_LIST},
|
\"XMLY_COOKIE_LIST\": ${XMLY_COOKIE_LIST},
|
||||||
\"ONEPLUSBBS_COOKIE_LIST\": ${ONEPLUSBBS_COOKIE_LIST},
|
\"ONEPLUSBBS_COOKIE_LIST\": ${ONEPLUSBBS_COOKIE_LIST},
|
||||||
\"QQREAD_ACCOUNT_LIST\": ${QQREAD_ACCOUNT_LIST},
|
|
||||||
\"FMAPP_ACCOUNT_LIST\": ${FMAPP_ACCOUNT_LIST},
|
\"FMAPP_ACCOUNT_LIST\": ${FMAPP_ACCOUNT_LIST},
|
||||||
\"BAIDU_URL_SUBMIT_LIST\": ${BAIDU_URL_SUBMIT_LIST},
|
\"BAIDU_URL_SUBMIT_LIST\": ${BAIDU_URL_SUBMIT_LIST},
|
||||||
\"BILIBILI_COOKIE_LIST\": ${BILIBILI_COOKIE_LIST},
|
\"BILIBILI_COOKIE_LIST\": ${BILIBILI_COOKIE_LIST},
|
||||||
|
@ -71,142 +71,6 @@
|
|||||||
"oneplusbbs_cookie": "帐号2 cookie"
|
"oneplusbbs_cookie": "帐号2 cookie"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"QQREAD_ACCOUNT_LIST": [
|
|
||||||
{
|
|
||||||
"qqread_bodys": {
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"qqread_timeurl": "https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1",
|
|
||||||
"qqread_headers": {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"qqread_bodys": {
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"qqread_timeurl": "https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1",
|
|
||||||
"qqread_headers": {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"BAIDU_URL_SUBMIT_LIST": [
|
"BAIDU_URL_SUBMIT_LIST": [
|
||||||
{
|
{
|
||||||
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||||
@ -258,7 +122,23 @@
|
|||||||
"data": "simCount=1&version=iphone_c@8.0100&mobile=xxxxxx&netWay=wifi&isRemberPwd=false&appId=xxxxxx&deviceId=xxxxxx&pip=192.168.1.1&password=xxxxxx&deviceOS=14.3&deviceBrand=iphone&deviceModel=iPhone&remark4=&keyVersion=2&deviceCode=xxxxxx"
|
"data": "simCount=1&version=iphone_c@8.0100&mobile=xxxxxx&netWay=wifi&isRemberPwd=false&appId=xxxxxx&deviceId=xxxxxx&pip=192.168.1.1&password=xxxxxx&deviceOS=14.3&deviceBrand=iphone&deviceModel=iPhone&remark4=&keyVersion=2&deviceCode=xxxxxx"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"data": "账号2 参数"
|
"data": "帐号2 信息"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"V2EX_COOKIE_LIST": [
|
||||||
|
{
|
||||||
|
"v2ex_cookie": "帐号1 cookie"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"v2ex_cookie": "帐号2 cookie"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"WWW2NZZ_COOKIE_LIST": [
|
||||||
|
{
|
||||||
|
"www2nzz_cookie": "帐号1 cookie"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"www2nzz_cookie": "帐号2 cookie"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -9,7 +9,5 @@
|
|||||||
45 8 * * * python /dailycheckin/index.py >> /dailycheckin/logs/dailycheckin.log 2>&1
|
45 8 * * * python /dailycheckin/index.py >> /dailycheckin/logs/dailycheckin.log 2>&1
|
||||||
|
|
||||||
##############每日签到定时任务##############
|
##############每日签到定时任务##############
|
||||||
# 企鹅读书
|
|
||||||
*/11 * * * * python /dailycheckin/index.py qqread >> /dailycheckin/logs/qqread.log 2>&1
|
|
||||||
# 喜马拉雅极速版
|
# 喜马拉雅极速版
|
||||||
*/30 * * * * python /dailycheckin/index.py xmly >> /dailycheckin/logs/xmly.log 2>&1
|
*/30 * * * * python /dailycheckin/index.py xmly >> /dailycheckin/logs/xmly.log 2>&1
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
|签到|V2EX|每日签到|每天一次|
|
|签到|V2EX|每日签到|每天一次|
|
||||||
|签到|咔叽网单|每日签到|每天一次|
|
|签到|咔叽网单|每日签到|每天一次|
|
||||||
|羊毛|喜马拉雅极速版|金币获取|30分钟一次|
|
|羊毛|喜马拉雅极速版|金币获取|30分钟一次|
|
||||||
|羊毛|企鹅读书|金币获取|11分钟一次|
|
|
||||||
|其他|百度站点|提交网站页面供百度收录|每天一次|
|
|其他|百度站点|提交网站页面供百度收录|每天一次|
|
||||||
|其他|每日天气预报|获取指定的多个城市天气信息|每天一次|
|
|其他|每日天气预报|获取指定的多个城市天气信息|每天一次|
|
||||||
|其他|每日一句|从词霸中获取每日一句,带英文|每天一次|
|
|其他|每日一句|从词霸中获取每日一句,带英文|每天一次|
|
||||||
|
236
docs/settings.md
236
docs/settings.md
@ -78,142 +78,6 @@
|
|||||||
"oneplusbbs_cookie": "帐号2 cookie"
|
"oneplusbbs_cookie": "帐号2 cookie"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"QQREAD_ACCOUNT_LIST": [
|
|
||||||
{
|
|
||||||
"qqread_bodys": {
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"qqread_timeurl": "https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1",
|
|
||||||
"qqread_headers": {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"qqread_bodys": {
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"qqread_timeurl": "https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1",
|
|
||||||
"qqread_headers": {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"BAIDU_URL_SUBMIT_LIST": [
|
"BAIDU_URL_SUBMIT_LIST": [
|
||||||
{
|
{
|
||||||
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
|
||||||
@ -317,9 +181,6 @@
|
|||||||
|_**MUSIC163_ACCOUNT_LIST**_.music163_password|网易云音乐|非必须|[网易云音乐](https://music.163.com/) 帐号的密码|
|
|_**MUSIC163_ACCOUNT_LIST**_.music163_password|网易云音乐|非必须|[网易云音乐](https://music.163.com/) 帐号的密码|
|
||||||
|_**XMLY_COOKIE_LIST**_.xmly_cookie|喜马拉雅极速版|非必须|喜马拉雅极速版 cookie|
|
|_**XMLY_COOKIE_LIST**_.xmly_cookie|喜马拉雅极速版|非必须|喜马拉雅极速版 cookie|
|
||||||
|_**ONEPLUSBBS_COOKIE_LIST**_.oneplusbbs_cookie|一加手机社区官方论坛|非必须|[一加手机社区官方论坛](https://www.oneplusbbs.com/) 账户的 cookie|
|
|_**ONEPLUSBBS_COOKIE_LIST**_.oneplusbbs_cookie|一加手机社区官方论坛|非必须|[一加手机社区官方论坛](https://www.oneplusbbs.com/) 账户的 cookie|
|
||||||
|_**QQREAD_ACCOUNT_LIST**_.qqread_bodys|企鹅读书|非必须|企鹅读书 的请求体|
|
|
||||||
|_**QQREAD_ACCOUNT_LIST**_.qqread_headers|企鹅读书|非必须|企鹅读书 的请求头|
|
|
||||||
|_**QQREAD_ACCOUNT_LIST**_.qqread_timeurl|企鹅读书|非必须|企鹅读书 上传阅读时长功能需要的 URL|
|
|
||||||
|_**BAIDU_URL_SUBMIT_LIST**_.data_url|百度搜索资源平台|非必须|提交网站的 URL 链接|
|
|_**BAIDU_URL_SUBMIT_LIST**_.data_url|百度搜索资源平台|非必须|提交网站的 URL 链接|
|
||||||
|_**BAIDU_URL_SUBMIT_LIST**_.submit_url|百度搜索资源平台|非必须|[百度搜索资源平台](https://ziyuan.baidu.com/site/index#/) 提交百度网站的目标 URL|
|
|_**BAIDU_URL_SUBMIT_LIST**_.submit_url|百度搜索资源平台|非必须|[百度搜索资源平台](https://ziyuan.baidu.com/site/index#/) 提交百度网站的目标 URL|
|
||||||
|_**BAIDU_URL_SUBMIT_LIST**_.times|百度搜索资源平台|非必须|每日对同一个网站提交次数|
|
|_**BAIDU_URL_SUBMIT_LIST**_.times|百度搜索资源平台|非必须|每日对同一个网站提交次数|
|
||||||
@ -448,103 +309,6 @@
|
|||||||
|
|
||||||
抓包 APP 的请求中的 headers 信息中提取 token、deviceId、cookie 即可
|
抓包 APP 的请求中的 headers 信息中提取 token、deviceId、cookie 即可
|
||||||
|
|
||||||
#### 企鹅读书参数获取
|
|
||||||
|
|
||||||
> ⚠️注意: `qqread_bodys` 中的 三个 `bid` 和 `qqread_timeurl` 中的 `bid` 必须是一致的
|
|
||||||
|
|
||||||
> ⚠️注意: `qqread_bodys` 中的 三个 `bid` 和 `qqread_timeurl` 中的 `bid` 必须是一致的
|
|
||||||
|
|
||||||
> ⚠️注意: `qqread_bodys` 中的 三个 `bid` 和 `qqread_timeurl` 中的 `bid` 必须是一致的
|
|
||||||
|
|
||||||
进入 [https://m.q.qq.com/a/s/6fb00f7035f82425df91a5b668f6be8b](https://m.q.qq.com/a/s/6fb00f7035f82425df91a5b668f6be8b) >>
|
|
||||||
进一本书阅读一会儿 >> 然后退出 >> 获取`qqread_headers` `qqread_bodys` 和 `qqread_timeurl`
|
|
||||||
|
|
||||||
##### `qqread_headers`参数格式
|
|
||||||
|
|
||||||
匹配链接为 `https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?.......`
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"Accept": "*/*",
|
|
||||||
"ywsession": "xxxxxx",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Cookie": "xxxxxx",
|
|
||||||
"Host": "mqqapi.reader.qq.com",
|
|
||||||
"User-Agent": "QQ/8.4.17.638 CFNetwork/1206 Darwin/20.1.0",
|
|
||||||
"Referer": "https://appservice.qq.com/xxxxxx/0.32.5/page-frame.html",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"mpversion": "0.32.5"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
##### `qqread_bodys` 参数格式
|
|
||||||
|
|
||||||
匹配链接为 `https://mqqapi.reader.qq.com/log/v4/mqq/track`
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"common": {
|
|
||||||
"appid": 1111111111,
|
|
||||||
"areaid": 5,
|
|
||||||
"qq_ver": "8.4.17",
|
|
||||||
"os_ver": "iOS 14.2",
|
|
||||||
"mp_ver": "0.32.5",
|
|
||||||
"mpos_ver": "1.21.0",
|
|
||||||
"brand": "iPhone",
|
|
||||||
"model": "iPhone 11<iPhone12,1>",
|
|
||||||
"screenWidth": 414,
|
|
||||||
"screenHeight": 896,
|
|
||||||
"windowWidth": 414,
|
|
||||||
"windowHeight": 813,
|
|
||||||
"openid": "xxxxxx",
|
|
||||||
"guid": 111111111111,
|
|
||||||
"session": "xxxxxx",
|
|
||||||
"scene": 2016,
|
|
||||||
"source": "xxxxxx",
|
|
||||||
"hasRedDot": "false",
|
|
||||||
"missions": -1,
|
|
||||||
"caseID": -1
|
|
||||||
},
|
|
||||||
"dataList": [
|
|
||||||
{
|
|
||||||
"click1": "bookDetail_bottomBar_read_C",
|
|
||||||
"click2": "bookLib2_bookList_bookClick_C",
|
|
||||||
"route": "pages/book-read/index",
|
|
||||||
"refer": "pages/book-detail/index",
|
|
||||||
"options": {
|
|
||||||
"bid": "888888",
|
|
||||||
"cid": "1"
|
|
||||||
},
|
|
||||||
"dis": 1666666666666,
|
|
||||||
"ext6": 26,
|
|
||||||
"eventID": "bookRead_show_I",
|
|
||||||
"type": "shown",
|
|
||||||
"ccid": 1,
|
|
||||||
"bid": "888888",
|
|
||||||
"bookStatus": 1,
|
|
||||||
"bookPay": 0,
|
|
||||||
"chapterStatus": 0,
|
|
||||||
"ext1": {
|
|
||||||
"font": 18,
|
|
||||||
"bg": 0,
|
|
||||||
"pageMode": 1
|
|
||||||
},
|
|
||||||
"from": "bookLib2_bookList_bookClick_C_2_888888"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
##### `qqread_timeurl` 参数格式
|
|
||||||
|
|
||||||
匹配链接为 `https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?.......`
|
|
||||||
|
|
||||||
```text
|
|
||||||
https://mqqapi.reader.qq.com/mqq/addReadTimeWithBid?scene=2016&refer=pages%2Fbook-category%2Findex&bid=888888&readTime=8888&read_type=0&conttype=1&read_status=0&chapter_info=xxxxxx&sp=-1
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 联通营业厅参数获取
|
#### 联通营业厅参数获取
|
||||||
|
|
||||||
1. 退出手机营业厅登录,然后开启抓包软件,登录手机营业厅
|
1. 退出手机营业厅登录,然后开启抓包软件,登录手机营业厅
|
||||||
|
12
index.py
12
index.py
@ -20,7 +20,6 @@ from liantong import LianTongCheckIn
|
|||||||
from motto import Motto
|
from motto import Motto
|
||||||
from music163 import Music163CheckIn
|
from music163 import Music163CheckIn
|
||||||
from oneplusbbs import OnePlusBBSCheckIn
|
from oneplusbbs import OnePlusBBSCheckIn
|
||||||
from qqread import QQReadCheckIn
|
|
||||||
from tieba import TiebaCheckIn
|
from tieba import TiebaCheckIn
|
||||||
from v2ex import V2exCheckIn
|
from v2ex import V2exCheckIn
|
||||||
from vqq import VQQCheckIn
|
from vqq import VQQCheckIn
|
||||||
@ -115,11 +114,6 @@ def main_handler(event, context):
|
|||||||
oneplusbbs_cookie_list = (
|
oneplusbbs_cookie_list = (
|
||||||
json.loads(os.getenv("ONEPLUSBBS_COOKIE_LIST", [])) if os.getenv("ONEPLUSBBS_COOKIE_LIST") else []
|
json.loads(os.getenv("ONEPLUSBBS_COOKIE_LIST", [])) if os.getenv("ONEPLUSBBS_COOKIE_LIST") else []
|
||||||
)
|
)
|
||||||
|
|
||||||
qqread_account_list = (
|
|
||||||
json.loads(os.getenv("QQREAD_ACCOUNT_LIST", [])) if os.getenv("QQREAD_ACCOUNT_LIST") else []
|
|
||||||
)
|
|
||||||
|
|
||||||
fmapp_account_list = json.loads(os.getenv("FMAPP_ACCOUNT_LIST", [])) if os.getenv("FMAPP_ACCOUNT_LIST") else []
|
fmapp_account_list = json.loads(os.getenv("FMAPP_ACCOUNT_LIST", [])) if os.getenv("FMAPP_ACCOUNT_LIST") else []
|
||||||
tieba_cookie_list = json.loads(os.getenv("TIEBA_COOKIE_LIST", [])) if os.getenv("TIEBA_COOKIE_LIST") else []
|
tieba_cookie_list = json.loads(os.getenv("TIEBA_COOKIE_LIST", [])) if os.getenv("TIEBA_COOKIE_LIST") else []
|
||||||
bilibili_cookie_list = (
|
bilibili_cookie_list = (
|
||||||
@ -159,7 +153,6 @@ def main_handler(event, context):
|
|||||||
music163_account_list = data.get("MUSIC163_ACCOUNT_LIST", [])
|
music163_account_list = data.get("MUSIC163_ACCOUNT_LIST", [])
|
||||||
xmly_cookie_list = data.get("XMLY_COOKIE_LIST", [])
|
xmly_cookie_list = data.get("XMLY_COOKIE_LIST", [])
|
||||||
oneplusbbs_cookie_list = data.get("ONEPLUSBBS_COOKIE_LIST", [])
|
oneplusbbs_cookie_list = data.get("ONEPLUSBBS_COOKIE_LIST", [])
|
||||||
qqread_account_list = data.get("QQREAD_ACCOUNT_LIST", [])
|
|
||||||
baidu_url_submit_list = data.get("BAIDU_URL_SUBMIT_LIST", [])
|
baidu_url_submit_list = data.get("BAIDU_URL_SUBMIT_LIST", [])
|
||||||
fmapp_account_list = data.get("FMAPP_ACCOUNT_LIST", [])
|
fmapp_account_list = data.get("FMAPP_ACCOUNT_LIST", [])
|
||||||
tieba_cookie_list = data.get("TIEBA_COOKIE_LIST", [])
|
tieba_cookie_list = data.get("TIEBA_COOKIE_LIST", [])
|
||||||
@ -173,10 +166,7 @@ def main_handler(event, context):
|
|||||||
if xmly_cookie_list:
|
if xmly_cookie_list:
|
||||||
msg_list = XMLYCheckIn(xmly_cookie_list=xmly_cookie_list).main()
|
msg_list = XMLYCheckIn(xmly_cookie_list=xmly_cookie_list).main()
|
||||||
content_list += msg_list
|
content_list += msg_list
|
||||||
elif message == "qqread":
|
|
||||||
if qqread_account_list:
|
|
||||||
msg_list = QQReadCheckIn(qqread_account_list=qqread_account_list).main()
|
|
||||||
content_list += msg_list
|
|
||||||
else:
|
else:
|
||||||
if iqiyi_cookie_list:
|
if iqiyi_cookie_list:
|
||||||
msg_list = IQIYICheckIn(iqiyi_cookie_list=iqiyi_cookie_list).main()
|
msg_list = IQIYICheckIn(iqiyi_cookie_list=iqiyi_cookie_list).main()
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from qqread.qqread import QQReadCheckIn
|
|
324
qqread/qqread.py
324
qqread/qqread.py
@ -1,324 +0,0 @@
|
|||||||
# -*- coding: utf8 -*-
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import random
|
|
||||||
import re
|
|
||||||
import time
|
|
||||||
from datetime import datetime, timedelta
|
|
||||||
from multiprocessing import Pool
|
|
||||||
|
|
||||||
import requests
|
|
||||||
|
|
||||||
|
|
||||||
class QQReadCheckIn:
|
|
||||||
def __init__(self, qqread_account_list):
|
|
||||||
self.qqread_account_list = qqread_account_list
|
|
||||||
self.delaysec = 1 # 每次任务延迟时间 默认1秒
|
|
||||||
self.limit_time = 18 # 每日最大上传阅读时间,默认为18小时
|
|
||||||
self.once_time = 5 # 单次上传阅读时间,默认为5分钟
|
|
||||||
self.drawamount = 0 # [0, 10, 30, 50, 100] 分别为关闭自动提现、提现10元、30元、50元、100元,默认为关闭
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def valid(headers, timeurl, bodys):
|
|
||||||
qqnum = "未获取到"
|
|
||||||
try:
|
|
||||||
response = requests.get(url="https://mqqapi.reader.qq.com/mqq/user/init", headers=headers)
|
|
||||||
if not response.json()["data"]["isLogin"]:
|
|
||||||
qqnum = re.findall(r"ywguid=(.*?);ywkey", headers["Cookie"])[0]
|
|
||||||
return False, f"【HEADERS 过期】: {qqnum}"
|
|
||||||
|
|
||||||
timeurl_bid = re.findall(r"&bid=(\d+)&", timeurl)[0] if re.findall(r"&bid=(\d+)&", timeurl) else None
|
|
||||||
bodys_bid1 = bodys.get("dataList", [{}])[0].get("bid")
|
|
||||||
bodys_bid2 = bodys.get("dataList", [{}])[0].get("options", {}).get("bid")
|
|
||||||
bodys_bid3 = bodys.get("dataList", [{}])[0].get("from")
|
|
||||||
qqnum = bodys.get("common", {}).get("guid")
|
|
||||||
if len(list({str(timeurl_bid), str(bodys_bid1), str(bodys_bid2)})) != 1 or bodys_bid1 not in bodys_bid3:
|
|
||||||
return False, f"【BID 参数错误】: {qqnum}"
|
|
||||||
return True, ""
|
|
||||||
except Exception as e:
|
|
||||||
print(e)
|
|
||||||
return False, f"【HEADERS 过期】: {qqnum}"
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def gettime():
|
|
||||||
"""获取北京时间"""
|
|
||||||
bj_dt = datetime.utcnow() + timedelta(hours=8)
|
|
||||||
return bj_dt
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def get_timestamp() -> int:
|
|
||||||
"""获取当日0点时间戳"""
|
|
||||||
bj_dt = (datetime.utcnow() + timedelta(hours=8)).strftime("%Y-%m-%d") + " 00:00:00"
|
|
||||||
time_array = time.strptime(bj_dt, "%Y-%m-%d %H:%M:%S")
|
|
||||||
time_stamp = int(time.mktime(time_array) * 1000)
|
|
||||||
return time_stamp
|
|
||||||
|
|
||||||
def delay(self):
|
|
||||||
"""延时"""
|
|
||||||
time.sleep(self.delaysec)
|
|
||||||
|
|
||||||
def get_template(self, headers, function_id):
|
|
||||||
"""请求模板"""
|
|
||||||
function_url = f"https://mqqapi.reader.qq.com/mqq/{function_id}"
|
|
||||||
self.delay()
|
|
||||||
data = requests.get(url=function_url, headers=headers).json()
|
|
||||||
return data
|
|
||||||
|
|
||||||
def qqreadtask(self, headers):
|
|
||||||
"""获取任务列表"""
|
|
||||||
task_data = self.get_template(headers=headers, function_id="red_packet/user/page?fromGuid=")["data"]
|
|
||||||
return task_data
|
|
||||||
|
|
||||||
def qqreadmytask(self, headers):
|
|
||||||
"""获取“我的”页面任务"""
|
|
||||||
mytask_data = self.get_template(headers=headers, function_id="v1/task/list")["data"]["taskList"]
|
|
||||||
return mytask_data
|
|
||||||
|
|
||||||
def qqreadticket(self, headers):
|
|
||||||
"""书券签到"""
|
|
||||||
qqreadticketurl = "https://mqqapi.reader.qq.com/mqq/sign_in/user"
|
|
||||||
self.delay()
|
|
||||||
ticket_data = requests.post(url=qqreadticketurl, headers=headers).json()["data"]
|
|
||||||
return ticket_data
|
|
||||||
|
|
||||||
def qqreadsign(self, headers):
|
|
||||||
"""每日打卡"""
|
|
||||||
sign_data = self.get_template(headers=headers, function_id="red_packet/user/clock_in/page")["data"]
|
|
||||||
return sign_data
|
|
||||||
|
|
||||||
def qqreadsign2(self, headers):
|
|
||||||
"""每日打卡翻倍"""
|
|
||||||
sign2_data = self.get_template(headers=headers, function_id="red_packet/user/clock_in_video")
|
|
||||||
return sign2_data
|
|
||||||
|
|
||||||
def qqreadtodayread(self, headers):
|
|
||||||
"""每日阅读"""
|
|
||||||
todayread_data = self.get_template(headers=headers, function_id="red_packet/user/read_book")
|
|
||||||
return todayread_data
|
|
||||||
|
|
||||||
def qqreadvideo(self, headers):
|
|
||||||
"""视频奖励"""
|
|
||||||
video_data = self.get_template(headers=headers, function_id="red_packet/user/watch_video")
|
|
||||||
return video_data
|
|
||||||
|
|
||||||
def qqreadbox(self, headers):
|
|
||||||
"""宝箱奖励"""
|
|
||||||
box_data = self.get_template(headers=headers, function_id="red_packet/user/treasure_box")
|
|
||||||
return box_data
|
|
||||||
|
|
||||||
def qqreadbox2(self, headers):
|
|
||||||
"""宝箱奖励翻倍"""
|
|
||||||
box2_data = self.get_template(headers=headers, function_id="red_packet/user/treasure_box_video")
|
|
||||||
return box2_data
|
|
||||||
|
|
||||||
def qqreadwktime(self, headers):
|
|
||||||
"""获取本周阅读时长"""
|
|
||||||
wktime_data = self.get_template(headers=headers, function_id="v1/bookShelfInit")["data"]["readTime"]
|
|
||||||
return wktime_data
|
|
||||||
|
|
||||||
def qqreadwkpickinfo(self, headers):
|
|
||||||
"""周阅读时长奖励查询"""
|
|
||||||
wkpickinfo_data = self.get_template(headers=headers, function_id="pickPackageInit")["data"]
|
|
||||||
return wkpickinfo_data
|
|
||||||
|
|
||||||
def qqreadwkpick(self, headers, num):
|
|
||||||
"""周阅读时长奖励领取"""
|
|
||||||
wkpick_data = self.get_template(headers=headers, function_id=f"pickPackage?readTime={num}")
|
|
||||||
return wkpick_data
|
|
||||||
|
|
||||||
def qqreadtodaytime(self, headers, bidnum):
|
|
||||||
"""获取本日阅读时长"""
|
|
||||||
bid = re.findall(r'bid=(\d+)&', bidnum)[0]
|
|
||||||
todaytime_data = self.get_template(
|
|
||||||
headers=headers,
|
|
||||||
function_id=f"page/config?router=%2Fpages%2Fbook-read%2Findex&options=%7B%22bid%22%3A%22{bid}%22%7D")[
|
|
||||||
'data']['pageParams']['todayReadSeconds']
|
|
||||||
return todaytime_data // 60
|
|
||||||
|
|
||||||
def qqreadtodaygift(self, headers, sec):
|
|
||||||
"""本日阅读时长奖励"""
|
|
||||||
todaygift_data = self.get_template(headers=headers, function_id=f"red_packet/user/read_time?seconds={sec}")
|
|
||||||
return todaygift_data.get("data")
|
|
||||||
|
|
||||||
def qqreadaddtime(self, headers, addtimeurl):
|
|
||||||
"""上传阅读时长"""
|
|
||||||
sectime = random.randint(self.once_time * 60 * 1000, (self.once_time + 1) * 60 * 1000)
|
|
||||||
findtime1 = re.compile(r'readTime%22%3A(\d+)%2C')
|
|
||||||
url = re.sub(findtime1.findall(addtimeurl)[0], str(sectime), str(addtimeurl))
|
|
||||||
self.delay()
|
|
||||||
addtime_data = requests.get(url=url, headers=headers).json()
|
|
||||||
return addtime_data
|
|
||||||
|
|
||||||
def qqreadssr(self, headers, sec):
|
|
||||||
"""每日阅读时长奖励"""
|
|
||||||
readssr_data = self.get_template(headers=headers, function_id=f"red_packet/user/read_time?seconds={sec}")
|
|
||||||
return readssr_data
|
|
||||||
|
|
||||||
def qqreadwithdrawinfo(self, headers):
|
|
||||||
"""查询提现信息"""
|
|
||||||
withdrawinfo_data = self.get_template(headers=headers, function_id=f"red_packet/user/withdraw/list?pn=1")
|
|
||||||
return withdrawinfo_data.get("data").get("list")[0]
|
|
||||||
|
|
||||||
def qqreadwithdrawal(self, headers, amount):
|
|
||||||
"""提现"""
|
|
||||||
qqreadwithdrawalurl = f"https://mqqapi.reader.qq.com/mqq/red_packet/user/withdraw?amount={amount}"
|
|
||||||
self.delay()
|
|
||||||
withdrawal_data = requests.post(qqreadwithdrawalurl, headers=headers).json()
|
|
||||||
if withdrawal_data["data"]["code"] == 0:
|
|
||||||
msg = withdrawal_data["msg"]
|
|
||||||
else:
|
|
||||||
msg = withdrawal_data["data"]["msg"]
|
|
||||||
return msg
|
|
||||||
|
|
||||||
def qqreadtrack(self, headers, data: dict):
|
|
||||||
"""Track"""
|
|
||||||
qqreadtrackurl = "https://mqqapi.reader.qq.com/log/v4/mqq/track"
|
|
||||||
dis = data.get("dataList", [{}])[0].get("dis")
|
|
||||||
data = re.sub(str(dis), str(int(time.time() * 1000)), str(data))
|
|
||||||
self.delay()
|
|
||||||
track_data = requests.post(url=qqreadtrackurl, data=json.dumps(eval(data)), headers=headers).json()
|
|
||||||
return track_data
|
|
||||||
|
|
||||||
def totalamount(self, headers) -> str:
|
|
||||||
"""统计今日获得金币"""
|
|
||||||
totalamount = 0
|
|
||||||
for pn in range(12):
|
|
||||||
url = f"https://mqqapi.reader.qq.com/mqq/red_packet/user/trans/list?pn={pn + 1}"
|
|
||||||
amount_data = requests.get(url=url, headers=headers).json()["data"]["list"]
|
|
||||||
for i in amount_data:
|
|
||||||
if i["createTime"] >= self.get_timestamp():
|
|
||||||
totalamount += i["amount"]
|
|
||||||
return str(totalamount)
|
|
||||||
|
|
||||||
def start(self, secrets):
|
|
||||||
start_time = time.time()
|
|
||||||
msg_list = []
|
|
||||||
qqread_headers = secrets.get("qqread_headers")
|
|
||||||
qqread_bodys = secrets.get("qqread_bodys")
|
|
||||||
qqread_timeurl = secrets.get("qqread_timeurl")
|
|
||||||
msg_list.append(f"=== {self.gettime().strftime('%Y-%m-%d %H:%M:%S')} ===")
|
|
||||||
msg_list.append(f"=== 📣系统通知📣 ===")
|
|
||||||
valid_flag, valid_msg = self.valid(headers=qqread_headers, timeurl=qqread_timeurl, bodys=qqread_bodys)
|
|
||||||
if valid_flag:
|
|
||||||
todaytime_data = self.qqreadtodaytime(qqread_headers, qqread_timeurl)
|
|
||||||
wktime_data = self.qqreadwktime(qqread_headers)
|
|
||||||
print(f"Track update {self.qqreadtrack(qqread_headers, qqread_bodys)['msg']}")
|
|
||||||
task_data = self.qqreadtask(qqread_headers)
|
|
||||||
mytask_data = self.qqreadmytask(qqread_headers)
|
|
||||||
task_list = task_data["taskList"]
|
|
||||||
msg_list.append(f"【用户信息】: {qqread_bodys['common']['guid']}")
|
|
||||||
msg_list.append(f"【账户余额】: {task_data['user']['amount']}金币")
|
|
||||||
msg_list.append(f"【今日阅读】: {todaytime_data}分钟")
|
|
||||||
msg_list.append(f"【本周阅读】: {wktime_data}分钟")
|
|
||||||
for one_task in task_list:
|
|
||||||
msg_list.append(f"【{one_task['title']}】: {one_task['amount']}金币,{one_task['actionText']}")
|
|
||||||
msg_list.append(
|
|
||||||
f"【第{task_data['invite']['issue']}期|{task_data['invite']['dayRange']}】:"
|
|
||||||
f"已邀请 {task_data['invite']['inviteCount']} 人,"
|
|
||||||
f"再邀请 {task_data['invite']['nextInviteConfig']['count']} 人"
|
|
||||||
f"获得 {task_data['invite']['nextInviteConfig']['amount']} 金币"
|
|
||||||
)
|
|
||||||
msg_list.append(
|
|
||||||
f"【{task_data['fans']['title']}】: {task_data['fans']['fansCount']}个好友,"
|
|
||||||
f"{task_data['fans']['todayAmount']}金币"
|
|
||||||
)
|
|
||||||
msg_list.append(f"【宝箱任务{task_data['treasureBox']['count'] + 1}】: {task_data['treasureBox']['tipText']}")
|
|
||||||
|
|
||||||
if task_data["treasureBox"]["doneFlag"] == 0:
|
|
||||||
box_data = self.qqreadbox(qqread_headers)
|
|
||||||
if box_data["code"] == 0:
|
|
||||||
msg_list.append(f"【宝箱奖励{box_data['data']['count']}】: 获得{box_data['data']['amount']}金币")
|
|
||||||
|
|
||||||
for one_task in task_list:
|
|
||||||
if one_task["title"].find("立即阅读") != -1 and one_task["doneFlag"] == 0:
|
|
||||||
todayread_data = self.qqreadtodayread(qqread_headers)
|
|
||||||
if todayread_data["code"] == 0:
|
|
||||||
msg_list.append(f"【每日阅读】: 获得{todayread_data['data']['amount']}金币")
|
|
||||||
|
|
||||||
if one_task["title"].find("打卡") != -1:
|
|
||||||
sign_data = self.qqreadsign(qqread_headers)
|
|
||||||
if one_task["doneFlag"] == 0:
|
|
||||||
msg_list.append(f"【今日打卡】: 获得{sign_data['todayAmount']}金币,已连续签到{sign_data['clockInDays']}天")
|
|
||||||
if sign_data["videoDoneFlag"] == 0:
|
|
||||||
sign2_data = self.qqreadsign2(qqread_headers)
|
|
||||||
if sign2_data["code"] == 0:
|
|
||||||
msg_list.append(f"【打卡翻倍】: 获得{sign2_data['data']['amount']}金币")
|
|
||||||
|
|
||||||
if one_task["title"].find("视频") != -1 and one_task["doneFlag"] == 0:
|
|
||||||
video_data = self.qqreadvideo(qqread_headers)
|
|
||||||
if video_data["code"] == 0:
|
|
||||||
msg_list.append(f"【视频奖励】: 获得{video_data['data']['amount']}金币")
|
|
||||||
|
|
||||||
if one_task["title"].find("阅读任务") != -1 and one_task["doneFlag"] == 0:
|
|
||||||
if 1 <= todaytime_data < 15:
|
|
||||||
todaygift_data = self.qqreadtodaygift(qqread_headers, 30)
|
|
||||||
if todaygift_data["amount"] > 0:
|
|
||||||
msg_list.append(f"【阅读金币1】: 获得{todaygift_data['amount']}金币")
|
|
||||||
if 5 <= todaytime_data < 30:
|
|
||||||
time.sleep(2)
|
|
||||||
todaygift_data = self.qqreadtodaygift(qqread_headers, 300)
|
|
||||||
if todaygift_data["amount"] > 0:
|
|
||||||
msg_list.append(f"【阅读金币2】: 获得{todaygift_data['amount']}金币")
|
|
||||||
if todaytime_data >= 30:
|
|
||||||
time.sleep(2)
|
|
||||||
todaygift_data = self.qqreadtodaygift(qqread_headers, 1800)
|
|
||||||
if todaygift_data["amount"] > 0:
|
|
||||||
msg_list.append(f"【阅读金币3】: 获得{todaygift_data['amount']}金币")
|
|
||||||
|
|
||||||
for my_task in mytask_data:
|
|
||||||
if my_task["title"].find("每日签到") != -1 and my_task["doneFlag"] == 0:
|
|
||||||
ticket_data = self.qqreadticket(qqread_headers)
|
|
||||||
if ticket_data["takeTicket"] > 0:
|
|
||||||
msg_list.append(f"【书券签到】: 获得{ticket_data['takeTicket']}书券")
|
|
||||||
|
|
||||||
if wktime_data >= 1200:
|
|
||||||
wkpickinfo_data = self.qqreadwkpickinfo(qqread_headers)
|
|
||||||
package = ["10", "10", "20", "30", "50", "80", "100", "120"]
|
|
||||||
if not wkpickinfo_data[-1]["isPick"]:
|
|
||||||
for m, i in enumerate(wkpickinfo_data):
|
|
||||||
info = self.get_template(qqread_headers, f"pickPackage?readTime={i['readTime']}")
|
|
||||||
if info["code"] == 0:
|
|
||||||
msg_list.append(f"【周时长奖励{m + 1}】: 领取{package[m]}书券")
|
|
||||||
else:
|
|
||||||
msg_list.append("【周时长奖励】: 已全部领取")
|
|
||||||
|
|
||||||
if task_data["treasureBox"]["videoDoneFlag"] == 0:
|
|
||||||
time.sleep(6)
|
|
||||||
box2_data = self.qqreadbox2(qqread_headers)
|
|
||||||
if box2_data["code"] == 0:
|
|
||||||
msg_list.append(f"【宝箱翻倍】: 获得{box2_data['data']['amount']}金币")
|
|
||||||
|
|
||||||
if todaytime_data // 60 <= self.limit_time:
|
|
||||||
addtime_data = self.qqreadaddtime(qqread_headers, qqread_timeurl)
|
|
||||||
if addtime_data["code"] == 0:
|
|
||||||
msg_list.append(f"【阅读时长】: 成功上传{self.once_time}分钟")
|
|
||||||
|
|
||||||
if (
|
|
||||||
self.drawamount != 0
|
|
||||||
and task_data["user"]["amount"] >= self.drawamount * 10000
|
|
||||||
and self.gettime().hour == 21
|
|
||||||
):
|
|
||||||
withdrawinfo_data = self.qqreadwithdrawinfo(qqread_headers)["createTime"]
|
|
||||||
if withdrawinfo_data < self.get_timestamp():
|
|
||||||
withdrawal_data = self.qqreadwithdrawal(qqread_headers, self.drawamount * 10000)
|
|
||||||
msg_list.append(f"【自动提现】: 提现{self.drawamount}元({withdrawal_data})")
|
|
||||||
msg_list.append(f"【今日收益】: {self.totalamount(secrets.get('qqread_headers'))}金币")
|
|
||||||
|
|
||||||
else:
|
|
||||||
msg_list.append(valid_msg)
|
|
||||||
msg_list.append(f"\n🕛耗时:{time.time() - start_time}秒")
|
|
||||||
msg = "\n".join(msg_list)
|
|
||||||
print(msg)
|
|
||||||
return msg
|
|
||||||
|
|
||||||
def main(self):
|
|
||||||
with Pool(20) as p:
|
|
||||||
msg_result_list = (p.map(self.start, self.qqread_account_list))
|
|
||||||
return msg_result_list
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), "config.json"), "r", encoding="utf-8") as f:
|
|
||||||
datas = json.loads(f.read())
|
|
||||||
_qqread_account_list = datas.get("QQREAD_ACCOUNT_LIST", [])
|
|
||||||
QQReadCheckIn(qqread_account_list=_qqread_account_list).main()
|
|
Loading…
Reference in New Issue
Block a user