Faker库已添加开卡等活动通用监控脚本。
无需手动执行,解放双手。
自动监控执行开卡,加购等放水活动,无需时刻守护。
Spy全天候监控,自动更新环境变量执行任务。
本教程基于Faker一键安装2.11.3版本青龙,青龙面板版本不大于2.13,Faker2,3库使用。其他版本自测。
云服务器为CentOS7.6系统,Unbutu 20.04均通过测试成功。
云服务器必须可以科学上网,否则无法使用spy。
打开Finalshell,连接云服务器。首先安装Docker Docker安装方法不再赘述。
1、输入以下命令 每次输入命令前请等待命令执行完成。
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
首先进入Spy授权群 https://t.me/spy_auth 输入/spy 试用。获取授权码,请先私聊一遍SPY授权管家机器人。
如图在青龙面板创建一个应用,权限全给即可。保存好Client ID和Secret。
打开https://my.telegram.org/auth 登录TG 登录时请输入手机号格式为+86186xxxxxxxx
验证码会发送到TG。
保存好App api_id和App api_hash。
打开telegram客户端,创建一个公开群组。群组为发送监控日志使用。
用人形或其他方法获取自己的ID和群组ID
我用的是人形。或者使用机器人 @getidsbot
群组ID为-开头的。
个人TGID是正数。
配置文件在/root/auto_spy_data/autospy文件夹内的auto_spy.yaml。
下面Faker整理了Faker仓库内变量脚本所需要的所有设置。
配置文件内已添加监控的频道
【Faker线报频道https://t.me/faketoulu】整合保护环境,锦鲤偷撸,共富殿,甘露殿,冲鸭-万事屋,KR频道。
没关注的去关注下
配置文件整合全网频道变量,解决了每个频道变量名不统一但脚本名不同活动重复的问题。避免重复跑同一活动脚本黑号,只需要跑Faker2或3库即可。
此处复制机器人发给你的内容 Aauthentication:"xxxxx"
AutoRestart: ''
Container_Wait: 3
LogEnable: true
QingLong:
- Client_ID: 青龙应用ID 【前方留一个空格】
Client_Secret: 青龙应用秘钥 【前方留一个空格】
url: http://青龙ip:5700 【前方留一个空格,最后不要带/】
Telegram:
Log_En: true
TgLost: ''
Welcome: Faker,我来啦~~
api_hash: 上方的TG API HASH 【前方留一个空格】
api_id: 上方的TG API ID 【前方留一个空格】
forward_channel_id: '' 【可选,不写的话就不动】你要转发的目的地群或频道
forward_keyword: [] 【可选,不写的话就不动】你要转发的关键字,包含才会转发
forward_user_id: [] 【可选,不写的话就不动】你要转发谁的消息,可以是群id,用户id,机器人id,频道id
forward_user_name: [] 【可选,不写的话就不动】你要转发叫以下名字的信息
listen_CH:
- -1001670294604 【Faker线报频道】
log_id: -你自己创建的TG监控群号 别填我大群!!!
master_id:
- 你的TGID
【新手玩家只修改到此处】
下方为Faker库适配的监控配置更新 复制即可 最新更新时间 2022-10-08
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
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
Name: 【云上】LJ知识超人
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: jd_cjhy_wxCollectionActivityId
KeyWord:
- - jd_cjhy_wxCollectionActivityId
Name: 【抽奖】cjhy加购物车
Script: jd_cjhy_wxCollectionActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxDrawActivity_Id
KeyWord:
- - jd_cjhy_wxDrawActivity_Id
Name: 【抽奖】cjhy幸运抽大奖
Script: jd_cjhy_wxCollectionActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxCollectionActivityId
KeyWord:
- - jd_lzkj_wxCollectionActivityId
Name: 【抽奖】lzkj加购物车
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_Lottery
KeyWord:
- - JD_Lottery
Name: 【抽奖】joy抽奖机通用
Script: jd_lotterys.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_wxShopFollowActivity_activityId
KeyWord:
- - jd_wxShopFollowActivity_activityId
- - jd_wxShopFollowActivity_activityUrl
Name: 【抽奖】关注店铺抽奖
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: 【船长】生日礼包
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
Name: 【Faker】cjhy关注店铺有礼
Script: jd_cjhy_wxShopFollowActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxShopFollowActivity_activityId
KeyWord:
- - jd_lzkj_wxShopFollowActivity_activityId
Name: 【Faker】lzkj关注店铺有礼
Script: jd_lzkj_wxShopFollowActivity.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_cjhy_wxShopGift_ids
KeyWord:
- - jd_cjhy_wxShopGift_ids
Name: 【Faker】cjhy店铺礼包
Script: jd_cjhy_wxShopGift.js
TimeOut: 0
Wait: 2
- Container:
- - 1
Env: jd_lzkj_wxShopGift_ids
KeyWord:
- - jd_lzkj_wxShopGift_ids
Name: 【Faker】lzkj店铺礼包
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】收藏大师-抽奖通用
Script: jd_txzj_lottery.js
TimeOut: 0
Wait: 2
update_url: https://raw.githubusercontent.com/xieshang/AutoSpy/master/updatelist.json
将配置文件修改完成后。输入以下代码
python3 auto_spy_bot2.py
此时会出现登录界面,输入+86的手机号进行登录,验证码会发送到TG客户端。
登录成功后,查看Finalshell日志,看看是否成功执行。
输入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