仓库地址

https://github.com/chinnkarahoi/jd-scripts-docker

https://github.com/BlueSkyXN/jd-scripts-docker

参考资料

Docker 和 Docker Compose (Centos 7)安装教程【转】

致富经:每天1000+京豆,京东薅羊毛全攻略(星推官、红包、游戏、签到等)


https://github.com/lxk0301/jd_scripts/blob/master/backUp/GetJdCookie2.md
http://sc.ftqq.com/3.version


简介

Docker启动京东薅羊毛工具,自动更新,支持每日签到,京东水果等任务自动操作。

配合宝塔面板和微信推送更棒


安装

yum -y update

 

yum install curl-devel expat-devel gettext-devel \
openssl-devel zlib-devel
yum -y install git-core

 

sudo yum check-update
curl -fsSL https://get.docker.com/ | sh
sudo systemctl start docker
sudo systemctl status docker
sudo systemctl enable docker

 

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

 

git clone https://github.com/chinnkarahoi/jd-scripts-docker
cd jd-scripts-docker

配置

获取京东cookie

访问 https://plogin.m.jd.com/login/login 手机号登录获取cookie中的pt_key, pt_pin填入项目目录下的./env/env1文件,
(此方式cookie有效时长大概31天,其他登录方式比较短)。

更详细的获取方法可以看 浏览器获取京东cookie教程或者 插件获取京东cookie教程

推荐用插件获取

EditThisCookie插件:http://www.editthiscookie.com/

Chrome官方下载地址:https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?utm_source=chrome-ntp-icon

微信推送

cookie失效推送server酱的微信通知,获取到SCKEY后填到./env/all的PUSH_KEY

http://sc.ftqq.com/3.version

需要Github登录,微信扫码

TG-BOT推送

需要能访问TG的机器

需要你的用户ID(不是用户名)和BOT-TOKEN(向@botfather申请)

申请后需要和BOT对话一次才能正确接收消息


运行

docker-compose up --build --force-recreate --detach jd1

 

docker exec jd1 bash -c 'set -o allexport; source /all; source /env; source /jd-scripts-docker/resolve.sh; cd /scripts; node jd_bean_sign.js'

 

docker exec jd1 bash -c 'set -o allexport; source /all; source /env; source /jd-scripts-docker/resolve.sh; cd /scripts; ls jd_*.js | xargs -i node {}'

 

docker-compose logs

 

docker-compose down

其他额外操作请参考Github介绍


DEMO



 

点击数:53


(´,,•ω•,,‘)