经常薅羊毛的对青龙都不陌生,无论是撸豆,还是签到,做各种任务,都可以解放双手,7*24h帮你站岗。
当然如果你觉得这个太麻烦或者折腾到没头发,还是搞不定,也可以直接上我的车,机器人上车:https://t.me/Sillgirl_bot 发送 登录 即可上车。还可以使用Nark网页登录:https://ark.vpscn.ml
今天主要说一说撸豆的监控自动执行脚本玩法,Spy自动监控。
上图中是知名大佬faker的线报频道发布的线报,但是没有spy的话,就只能看着别人偷撸,接下来就是把这个部署过程分享一下,让更多的人享受撸豆的快感。
一、ssh链接到你的青龙服务器,获取超管权限。
二、安装代码如下,复制一行执行一行。
wget -O autospy https://raw.githubusercontent.com/xieshang/AutoSpy/master/docker.sh && chmod +x autospy && ./autospy
docker exec -it auto_spy bash
bash <(curl -s -L https://raw.githubusercontent.com/xieshang/AutoSpy/master/spy_update.sh)
mv auto_spy_bot.py auto_spy_bot2.py
exit
docker restart auto_spy
docker exec -it auto_spy bash
pip uninstall telethon
此处会询问,填写Y,回车。
pip install telethon==1.24.0
执行完上述代码后,打开telegram,进入Spy授权群 https://t.me/spy_auth 输入/spy 试用。获取授权码(试用授权有效期7天,需要及时签到续命,续命方法即在授权群发送/spy 签到,过期不签将会扣减一次重置机会,每个tg号有3次重置机会),请先私聊一遍SPY授权管家机器人https://t.me/auto_spy_bot。获取授权码后保存待用。
至青龙面板创建一个应用,权限全给即可。保存好Client ID和Secret。
打开https://my.telegram.org/auth 登录TG ,登录时请输入注册tg的手机号,格式为+86186xxxxxxxx
验证码会发送到TG。将获取到的App api_id和App api_hash保存好。
四、打开telegram客户端,创建一个公开群组。群组为发送监控日志使用。
用人形或其他方法获取自己的ID和群组ID
我用的是人形。或者使用机器人 https://t.me/getidsbot
添加机器人后,将自己群组内的消息转发到这个机器人,即可获取相应的ID。
群组ID为-开头的,后面填到log_id。
个人TGID是正数,后面填到master_id。
五、接下来要进行文件配置
配置文件在/root/auto_spy_data/autospy文件夹内的auto_spy.yaml。
下面Faker整理了Faker仓库内变量脚本所需要的所有设置。
配置文件内已添加监控的频道
【Faker线报频道https://t.me/faketoulu】整合保护环境,锦鲤偷撸,共富殿,甘露殿,冲鸭-万事屋,KR频道。
没关注的去关注下
配置文件整合全网频道变量,解决了每个频道变量名不统一但脚本名不同活动重复的问题。避免重复跑同一活动脚本黑号,只需要跑Faker2或3库即可(后文会添加拉库地址)。
直接复制下方代码,(切记)仅更换对应红色部分即可,其他不要修改,空格,标点都不能动。
Aauthentication: "67278214456494604-7D49604454D1E64DAAE1A281416044770C4D65DF53BEF42EC602E4E0591C7CDA0FA4412E4A894778F32DD089EFEA7285219444722B2E0D22534CFD9D051B990307DA18ABC9ABBFE48657A3C869755FA2966796E6DC8F06ED2FA8E3CFBC4CF3455386088F71AA148D12DE7E18B6DE4344EB5F930701CCE254D2A0C873C5185816-"
AutoRestart: ''
Container_Wait: 3
LogEnable: true
QingLong:
- Client_ID: 2TrC56jD_uVj
Client_Secret: mZ5tt0Em567nfgW_DvSz0bFn
url: http://192.168.191.182:5700
RestartByAuthFailTimes: '0'
SpyEnable: 开
Telegram:
Log_En: true
TgLost: ''
Welcome: 亲爱的,我来啦~~
api_hash: 26b277739db2062567b662a11ad20157
api_id: 24905619
forward_channel_id: ''
forward_keyword: []
forward_user_id: []
forward_user_name: []
listen_CH:
- -1001670294604
log_id: -1001760545605
master_id:
- 5449535618
2022-11-22 保持最新版本
mtproto: ''
proxy_http: ''
proxy_ip: ''
proxy_password: ''
proxy_port:
proxy_type: ''
proxy_username: ''
Use_SillyGirl: false
WaitTime: 10
branch: master
down_proxy: ''
js_config:
- Container:
- - 1
Env: jd_wxCartKoi_activityId
KeyWord:
- - jd_wxCartKoi_activityId
Name: 【云上】购物车锦鲤
Script: jd_wxCartKoi.js
TimeOut: 0
Wait: 5
- Container:
- - 1
Env: WXGAME_ACT_ID
KeyWord:
- - WXGAME_ACT_ID
Name: 【云上】通用游戏任务
Script: jd_wxgame.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxFansInterActionActivity_activityId
KeyWord:
- - jd_wxFansInterActionActivity_activityId
Name: 【云上】粉丝互动
Script: jd_wxFansInterActionActivity.js
TimeOut: 0
Wait: 10
- Container:
- - 1
Env: jd_wxSecond_activityId
KeyWord:
- - jd_wxSecond_activityId
Name: 【云上】读秒拼手速
Script: jd_wxSecond.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: computer_activityId
KeyWord:
- - computer_activityId
Name: 【云上】电脑配件
OverdueTime: 600
Script: jd_computer.js
TimeOut: 0
Wait: 5
- Container:
- - 1
Env: jd_fxyl_activityId
KeyWord:
- - jd_fxyl_activityId
Name: 【云上】分享有礼
Script: jd_share.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxKnowledgeActivity_activityId
KeyWord:
- - jd_cjwxKnowledgeActivity_activityId
- - jd_cjhy_wxKnowledgeActivity_activityId
- - jd_wxKnowledgeActivity_activityUrl
RegularRules: 'cjhy@[\d|a-z]{32}@0'
Name: 【云上】CJ知识超人
Script: jd_cjhy_wxKnowledgeActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxKnowledgeActivity_activityId
KeyWord:
- - jd_lzkj_wxKnowledgeActivity_activityId
- - jd_wxKnowledgeActivity_activityId
- - jd_wxKnowledgeActivity_activityUrl
Name: 【云上】LJ知识超人
RegularRules: 'lzkj@[\d|a-z]{32}@0'
Script: jd_lzkj_wxKnowledgeActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_activityId
KeyWord:
- - jd_cjhy_activityId
Name: 【组队】CJ瓜分京豆
Script: jd_cjzdgf.js
TimeOut: 0
Wait: 5
- Container:
- - 1
Env: jd_zdjr_activityId
KeyWord:
- - jd_zdjr_activityId
Name: 【组队】ZJ瓜分京豆
Script: jd_zdjr.js
TimeOut: 0
Wait: 5
- Container:
- - 1
Env: PKC_TXGZYL
KeyWord:
- - PKC_TXGZYL
Name: 【PKC】关注有礼-特效
Script: jd_txgzyl.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: PKC_GZYL
KeyWord:
- - PKC_GZYL
Name: 【PKC】关注有礼
Script: pkc_gzyl.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxCollectionActivityId
KeyWord:
- - jd_cjhy_wxCollectionActivityId
- - jd_wxCollectionActivity_activityUrl
Name: 【抽奖】cjhy加购物车
RegularRules: 'cjhy@[\d|a-z]{32}@0'
Script: jd_cjhy_wxCollectionActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxCollectionActivityId
KeyWord:
- - jd_lzkj_wxCollectionActivityId
- - jd_wxCollectionActivity_activityUrl
Name: 【抽奖】lzkj加购物车
RegularRules: 'lzkj@[\d|a-z]{32}@0'
Script: jd_lzkj_wxCollectionActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxCollectCard_activityId
KeyWord:
- - jd_wxCollectCard_activityId
Name: 【抽奖】集卡抽奖通用
Script: jd_wxCollectCard.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxShopFollowActivity_activityId
KeyWord:
- - jd_wxShopFollowActivity_activityId
- - jd_wxShopFollowActivity_activityUrl
Name: 【抽奖】关注店铺抽奖
RegularRules: '@[\d|a-z]{32}@0'
Script: jd_wxShopFollowActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_mhurlLis
KeyWord:
- - jd_mhurlLis
Name: 【抽奖】盲盒抽京豆
Script: jd_mhtask.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_nzmhurl
KeyWord:
- - jd_nzmhurl
Name: 【抽奖】女装盲盒抽京豆
Script: jd_nzmh.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: DPLHTY
KeyWord:
- - DPLHTY
Name: 【开卡】大牌联合
Script: jd_opencardLH.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: VENDER_ID
KeyWord:
- - VENDER_ID
Name: 【开卡】入会开卡领取礼包
Script: jd_card_force.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wdz_activityId
KeyWord:
- - jd_wdz_activityId
Name: 【开卡】微定制
Script: jd_wdz.js
TimeOut: 0
Wait: 10
- Container:
- - 1
Env: JD_JOYOPEN
KeyWord:
- - JD_JOYOPEN
Name: 【开卡】JoyJd任务脚本
Script: jd_opencard_joyopen.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wdz_openLuckBag_activityId
KeyWord:
- - jd_wdz_openLuckBag_activityId
Name: 【开卡】微定制-开福袋
Script: jd_wdz_openLuckBag.js
TimeOut: 0
Wait: 5
- Container:
- - 1
Env: DPQDTK
KeyWord:
- - DPQDTK
Name: 【签到】店铺签到
Script: jd_dpqd.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Disable: 0
Env: M_WX_LUCK_DRAW_URL
KeyWord:
- - M_WX_LUCK_DRAW_URL
Name: 【M系】幸运抽奖
OverdueTime: 1800
Script: m_jd_wx_luckDraw.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Disable: 0
Env: M_WX_ADD_CART_URL
KeyWord:
- - M_WX_ADD_CART_URL
Name: 【M系】加购有礼
OverdueTime: 1800
Script: m_jd_wx_addCart.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Disable: 0
Env: M_WX_COLLECT_CARD_URL
KeyWord:
- - M_WX_COLLECT_CARD_URL
Name: 【M系】集卡抽奖
OverdueTime: 1800
Script: m_jd_wx_collectCard.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Disable: 0
Env: M_WX_CENTER_DRAW_URL
KeyWord:
- - M_WX_CENTER_DRAW_URL
Name: 【M系】老虎机抽奖
OverdueTime: 1800
Script: m_jd_wx_centerDraw.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Disable: 0
Env: M_FAV_SHOP_ARGV
KeyWord:
- - M_FAV_SHOP_ARGV
Name: 【M系】收藏有礼
OverdueTime: 1800
Script: m_jd_fav_shop_gift.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Disable: 0
Env: M_FOLLOW_SHOP_ARGV
KeyWord:
- - M_FOLLOW_SHOP_ARGV
Name: 【M系】关注有礼
OverdueTime: 1800
Script: m_jd_follow_shop.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: M_WX_SHOP_GIFT_URL
KeyWord:
- - M_WX_SHOP_GIFT_URL
Name: 【M系】关注有礼无线
OverdueTime: 1800
Script: m_jd_wx_shopGift.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: M_WX_FOLLOW_DRAW_URL
KeyWord:
- - M_WX_FOLLOW_DRAW_URL
Name: 【M系】关注抽奖
OverdueTime: 1800
Script: m_jd_wx_followDraw.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: M_WX_BUILD_DRAW_URL
KeyWord:
- - M_WX_BUILD_DRAW_URL
Name: 【M系】盖楼领奖
OverdueTime: 1800
Script: m_jd_wx_buildDraw.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jinggengInviteJoin
KeyWord:
- - jinggengInviteJoin
Name: 【船长】邀请入会有礼
Script: jd_jinggengInvite.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_inv_authorCode
KeyWord:
- - jd_inv_authorCode
- - yhyauthorCode
Name: 【船长】邀请赢大礼
Script: jd_inviteFriendsGift.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxShopGiftId
KeyWord:
- - jd_wxShopGiftId
Name: 【船长】特效关注有礼
Script: jd_wxShopGift.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_joinCommonId
KeyWord:
- - jd_joinCommonId
Name: 【船长】通用开卡
Script: jd_joinCommon_opencard.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_shopLeagueId
KeyWord:
- - jd_shopLeagueId
Name: 【船长】开卡-shopLeague系列
Script: jd_shopLeague_opencard.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_shopCollectGiftId
KeyWord:
- - jd_shopCollectGiftId
Name: 【船长】店铺会员礼包
Script: jd_shopCollectGift.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wdz_activityId
KeyWord:
- - jd_wdz_activityId
Name: 【船长】微定制组队
Script: jd_wdz.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxCompleteInfoId
KeyWord:
- - jd_wxCompleteInfoId
Name: 【船长】完善信息有礼
Script: jd_wxCompleteInfo.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: M_WX_WDZ_ID
KeyWord:
- - M_WX_WDZ_ID
Name: 【M系列】微定制
Script: m_jd_wx_microDz.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: M_WX_SECOND_DRAW_URL
KeyWord:
- - M_WX_SECOND_DRAW_URL
Name: 【M系列】读秒拼手速
Script: m_jd_wx_secondDraw.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxBirthGiftsId
KeyWord:
- - jd_wxBirthGiftsId
Name: 【Faker库】生日礼包
Script: jd_wxBirthGifts.py
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxBuildActivity_activityId
KeyWord:
- - jd_lzkj_wxBuildActivity_activityId
- - jd_wxBuildActivity_activityId
Name: 【Faker库】盖楼有礼
Script: jd_lzkj_wxBuildActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: JD_Lottery
KeyWord:
- - JD_Lottery
Name: 【Faker库】joy抽奖机通用
Script: jd_lotterys.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: VENDER_ID
KeyWord:
- - VENDER_ID
Name: 【Faker库】入会开卡领取礼包通用
Script: jd_card_force.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: whx_drawShopGift
KeyWord:
- - whx_drawShopGift
Name: 【小埋】关注有礼-自动解析通用
Script: jd_whx_drawShopGift.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: prodevactCode
KeyWord:
- - prodevactCode
Name: 【小埋】邀请好友入会赢好礼
Script: jd_prodev.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_sevenDay_ids
KeyWord:
- - jd_cjhy_sevenDay_ids
Name: 【Faker】cjhy 七日签到
Script: jd_cjhy_sevenDay.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: cjhy_signActivity_ids
KeyWord:
- - cjhy_signActivity_ids
Name: 【Faker】cjhy签到有礼
Script: jd_cjhy_signActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_sevenDay_ids
KeyWord:
- - jd_lzkj_sevenDay_ids
Name: 【Faker】lzkj七日签到
Script: jd_lzkj_sevenDay.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_signActivity2_ids
KeyWord:
- - jd_lzkj_signActivity2_ids
Name: 【Faker】lzkj签到有礼
Script: jd_lzkj_signActivity2.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_daily_ids
KeyWord:
- - jd_cjhy_daily_ids
Name: 【Faker】cjhy每日抢
Script: jd_cjhy_daily.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_daily_ids
KeyWord:
- - jd_lzkj_daily_ids
Name: 【Faker】lzkj每日抢
Script: jd_lzkj_daily.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxGameActivity_activityId
KeyWord:
- - jd_cjhy_wxGameActivity_activityId
Name: 【Faker】cjhy游戏活动
Script: jd_cjhy_wxGameActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxShopFollowActivity_activityId
KeyWord:
- - jd_cjhy_wxShopFollowActivity_activityId
- - jd_wxShopFollowActivity_activityUrl
Name: 【Faker】cjhy关注店铺有礼
RegularRules: 'cjhy@[\d|a-z]{32}@0'
Script: jd_cjhy_wxShopFollowActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxShopFollowActivity_activityId
KeyWord:
- - jd_lzkj_wxShopFollowActivity_activityId
- - jd_wxShopFollowActivity_activityUrl
Name: 【Faker】lzkj关注店铺有礼
RegularRules: 'lzkj@[\d|a-z]{32}@0'
Script: jd_lzkj_wxShopFollowActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxShopGift_ids
KeyWord:
- - jd_cjhy_wxShopGift_ids
- - jd_wxShopGift_activityUrl
Name: 【Faker】cjhy店铺礼包
RegularRules: 'cjhy@[\d|a-z]{32}@0'
Script: jd_cjhy_wxShopGift.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxShopGift_ids
KeyWord:
- - jd_lzkj_wxShopGift_ids
- - jd_wxShopGift_activityUrl
Name: 【Faker】lzkj店铺礼包
RegularRules: 'lzkj@[\d|a-z]{32}@0'
Script: jd_lzkj_wxShopGift.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: LUCK_DRAW_URL
KeyWord:
- - LUCK_DRAW_URL
Name: 【Faker】店铺抽奖通用活动
Script: jd_luck_draw.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_txzj_lottery_id
KeyWord:
- - jd_txzj_lottery_id
Name: 【Faker】txzj抽奖通用
Script: jd_txzj_lottery.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_drawCenter_activityId
KeyWord:
- - jd_drawCenter_activityId
Name: 【Faker】店铺抽奖-刮刮乐
Script: jd_drawCenter.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_txzj_sign_in_id
KeyWord:
- - jd_txzj_sign_in_id
Name: 【Faker】收藏大师签到
Script: jd_txzj_sign_in.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxFansInterActionActivity_activityId
KeyWord:
- - jd_wxFansInterActionActivity_activityId
Name: 【Faker】粉丝互动通用
Script: jd_wxFansInterActionActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_txzj_collect_item_id
KeyWord:
- - jd_txzj_collect_item_id
Name: 【Faker】收藏大师关注有礼
Script: jd_txzj_collect_item.js
TimeOut: 0
Wait: 2
update_url: https://raw.githubusercontent.com/xieshang/AutoSpy/master/updatelist.json
ql repo https://git.metauniverse-cn.com/https://github.com/shufflewzc/faker2.git "jd_|jx_|gua_|jddj_|jdCookie" "activity|backUp" "^jd[^_]|USER|function|utils|sendNotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql|JDSignValidator|magic|depend|h5sts" "main"
ql repo https://git.metauniverse-cn.com/https://github.com/shufflewzc/faker3.git "jd_|jx_|gua_|jddj_|jdCookie" "activity|backUp" "^jd[^_]|USER|function|utils|sendNotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql|JDSignValidator|magic|depend|h5sts" "main"
将配置文件修改完成后回到ssh,容器内执行。输入以下代码
python3 auto_spy_bot2.py
此时会出现登录界面,输入+86的tg注册的手机号进行登录,验证码会发送到TG客户端。
登录成功后,键盘组合键Ctrl+C终止。然后输入代码
python3 auto_spy_bot2.py &
看到上图画面后。TG发送spy,应该是这样。
Ctrl+C终止 并执行下面代码 ,一行一个。
mv auto_spy_bot2.py auto_spy_bot.py 【把名字改回来】
exit 【退出容器】
docker restart auto_spy 【重启】
至此教程结束,线报群有新的线报,青龙即会执行对应脚本。