实战案例

项目声明

本系列文章源代码仅供python学习交流,请勿用于商业等违法相关法律法规的用途,如有发现,我会直接删除这个系列的文章和代码。

安装方式

在终端运行如下命令即可(请保证python在环境变量中):

pip install DecryptLoginExamples --upgrade

另外部分程序依赖于ffmpeg和aria2c, 请确保这个两个工具在你的系统环境变量中可以被调用:

项目汇总

Project_EN Introduction Core Code Project_CN
weibomonitor click click 微博监控
qqreports click click 生成QQ个人专属报告
bilibiliuservideos click click 下载B站指定UP主的所有视频
neteasesonglistdownloader click click 网易云个人歌单下载器
neteaselistenleaderboard click click 网易云个人听歌排行榜
userweibospider click click 下载指定微博用户的所有微博数据
neteasesignin click click 网易云音乐自动签到
weiboemoji click click 微博表情包爬取
weibosender click click 大吼一声发微博
tbgoods click click 淘宝商品数据小爬虫
jdgoods click click 京东商品数据小爬虫
delallweibos click click 批量删除微博
clearqzone click click 批量删除QQ空间说说
neteaseeveryday click click 在终端看网易云每日歌曲推荐
neteaseclickplaylist click click 网易云音乐刷歌曲播放量
cloud189signin click click 天翼云盘自动签到+抽奖
moocdl click click 中国大学MOOC下载器
modifymihealthsteps click click 修改小米运动中的步数
taobaosnap click click 淘宝抢购脚本
jingdongsnap click click 京东抢购脚本
bilibiliupmonitor click click B站UP主监控
bilibililottery click click B站监控关注的UP主并自动转发抽奖
weibowater click click 微博水军
weiboblacklist click click 微博批量拉黑脚本
weibolottery click click 微博自动转发抽奖

使用简介

微博监控

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
    'time_interval': 查询微博动态的间隔时间,
}
crawler_executor = client.Client()
crawler_executor.executor('weibomonitor', config=config)

生成QQ个人专属报告

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
    'savedir': 生成的报告保存的文件夹,
}
crawler_executor = client.Client()
crawler_executor.executor('qqreports', config=config)

下载B站指定UP主的所有视频

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('bilibiliuservideos', config=config)

网易云个人歌单下载器

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('neteasesonglistdownloader', config=config)

网易云个人听歌排行榜

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('neteaselistenleaderboard', config=config)

下载指定微博用户的所有微博数据

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
}
crawler_executor = client.Client()
crawler_executor.executor('userweibospider', config=config)

网易云音乐自动签到

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('neteasesignin', config=config)

微博表情包爬取

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
}
crawler_executor = client.Client()
crawler_executor.executor('weiboemoji', config=config)

大吼一声发微博

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
}
crawler_executor = client.Client()
crawler_executor.executor('weibosender', config=config)

淘宝商品数据小爬虫

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('tbgoods', config=config)

京东商品数据小爬虫

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('jdgoods', config=config)

批量删除微博

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
}
crawler_executor = client.Client()
crawler_executor.executor('delallweibos', config=config)

批量删除QQ空间说说

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('clearqzone', config=config)

在终端看网易云每日歌曲推荐

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('neteaseeveryday', config=config)

网易云音乐刷歌曲播放量

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
}
crawler_executor = client.Client()
crawler_executor.executor('neteaseclickplaylist', config=config)

天翼云盘自动签到+抽奖

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
}
crawler_executor = client.Client()
crawler_executor.executor('cloud189signin', config=config)

中国大学MOOC下载器

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

  • ffmpeg: 使用前请确保ffmpeg在环境变量中, 下载地址

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'url': 课程链接, 例如: https://www.icourse163.org/course/SJTU-1003381021, 
}
crawler_executor = client.Client()
crawler_executor.executor('moocdl', config=config)

修改小米运动中的步数

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
    'steps': 想要刷到的目标步数,
}
crawler_executor = client.Client()
crawler_executor.executor('modifymihealthsteps', config=config)

淘宝抢购脚本

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
    'trybuy_interval': 抢购商品时查询商品是否可以购买的时间间隔(单位秒),
    'server_key': Server酱的Key,
}
crawler_executor = client.Client()
crawler_executor.executor('taobaosnap', config=config)

京东抢购脚本

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
    'trybuy_interval': 抢购商品时查询商品是否可以购买的时间间隔(单位秒),
    'server_key': Server酱的Key,
    'paywd': 支付密码, 部分商品需要支付密码才能提交订单, 输入密码不会导致你直接购买商品, 请放心使用,
}
crawler_executor = client.Client()
crawler_executor.executor('jingdongsnap', config=config)

B站UP主监控

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
    'up_ids': 监控的UP主ID, 例如: ['406756145'],
    'time_interval': 查询UP主的动态的间隔时间,
    'server_key': Server酱的Key,
}
crawler_executor = client.Client()
crawler_executor.executor('bilibiliupmonitor', config=config)

B站监控关注的UP主并自动转发抽奖

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用于存储历史cookies的唯一标识ID, 
    'time_interval': 查询UP主的动态的间隔时间,
}
crawler_executor = client.Client()
crawler_executor.executor('bilibililottery', config=config)

微博水军

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
    'targetid': 想要流量造假服务的明星微博ID, 例如: '1776448504',
}
crawler_executor = client.Client()
crawler_executor.executor('weibowater', config=config)

微博批量拉黑脚本

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
    'blacklist_ids': 想要批量拉黑的用户列表, 例如: ['1776448504', '1792951112', '2656274875'],
}
crawler_executor = client.Client()
crawler_executor.executor('weiboblacklist', config=config)

微博自动转发抽奖

1.相关依赖

在终端运行如下命令即可安装运行该项目所需要的相关依赖包:

pip install DecryptLoginExamples

2.环境配置

  • 操作系统: Linux or macOS or Windows

  • Python版本: Python3.6+

3.调用方式

脚本调用方式如下:

from DecryptLoginExamples import client

config = {
    'username': 用户名,
    'password': 密码,
    'time_interval': 查询微博动态的间隔时间,
}
crawler_executor = client.Client()
crawler_executor.executor('weibolottery', config=config)