Advanced Python utilities for time and data processing
Project description
变更日志
[0.7.3] - wechatauto包
修复
- 修改,有的时候点击头像第一次个人资料弹不出来,重复点击2次
变更
- 添加了新功能,加入回复间隔时间,以及和当前时间间隔数,比如7天,可更改当前时间
from bruce_li_tc.wechatauto.wechat_video_automator.bruce_uiauto.bruce_uiautomation import WeChatVideoCrawler,handle_single_comment
# 1. 创建爬虫管理器实例
crawler = WeChatVideoCrawler()
# 2. 初始化(启动w、定位窗口等)
crawler.initialize(back_click_model=True)
# 3. 执行爬取!一句话搞定!
crawler.set_comment_callback(handle_single_comment)
video_list_data = crawler.crawl("关键字",
comment_key=["评论中的关键字","评论中的关键字2","评论中的关键字3"],
skip_comment=True,
comment_list=["回复话1","回复话2","回复话3"],
comment_day="7",
comment_datetime="2025-9-26 15:05:00",
Interval_count=5,
Interval_seconds=1)
print("video_list_data",video_list_data)
[0.7.2] - wechatauto包
修复
- 加入回复条数触发等待时间
[0.7.1] - wechatauto包
修复
- 修复了导包的问题,0.7.0不可用
[0.7.0] - wechatauto包
变更
- 添加了新功能,与0.6.7旧版本可能不太兼容
- 1.根据关键字,自动化搜索对应视频,按顺序点开,然后查看带评论关键字comment_key,并进行回复随机话comment_list和关注,继续下一个用户, 回调函数handle_single_comment也只会返回符合带评论关键字comment_key的评论,不会返回所有评论
- 2.更新了后台点击功能,0.6.7还是前台点击功能
from bruce_li_tc.wechatauto.wechat_video_automator.bruce_uiauto.bruce_uiautomation import WeChatVideoCrawler,handle_single_comment
# 1. 创建爬虫管理器实例
crawler = WeChatVideoCrawler()
# 2. 初始化(启动w、定位窗口等)
crawler.initialize(back_click_model=True)
# 3. 执行爬取!一句话搞定!
crawler.set_comment_callback(handle_single_comment)
video_list_data = crawler.crawl("关键字",comment_key=["评论中的关键字","评论中的关键字2","评论中的关键字3"],skip_comment=True,comment_list=["回复话1","回复话2","回复话3"])
print("video_list_data",video_list_data)
[0.6.7] - wechatauto包
新增
- 1.根据关键字,自动化搜索对应视频,按顺序点开,并获取所有评论,有回调函数handle_single_comment可自行处理后续的评论
from bruce_li_tc.wechatauto.wechat_video_automator.bruce_uiauto.bruce_uiautomation import WeChatVideoCrawler,handle_single_comment
# 1. 创建爬虫管理器实例
crawler = WeChatVideoCrawler()
# 2. 初始化(启动w、定位窗口等)
crawler.initialize(scroll_video_comment_time=0.5)
# 3. 执行爬取!一句话搞定!
crawler.set_comment_callback(handle_single_comment)
video_list_data = crawler.crawl("关键字",skip_comment=True)
print("video_list_data",video_list_data)
#获取视频列表数据
- 2.根据关键字,自动化搜索对应视频,按顺序点开,不获取评论,只获取视频的详情
from bruce_li_tc.wechatauto.wechat_video_automator.bruce_uiauto.bruce_uiautomation import WeChatVideoCrawler,handle_single_comment
# 1. 创建爬虫管理器实例
crawler = WeChatVideoCrawler()
# 2. 初始化(启动w、定位窗口等)
crawler.initialize(scroll_video_comment_time=0.5)
# 3. 执行爬取!一句话搞定!
video_list_data = crawler.crawl("关键字")
print("video_list_data",video_list_data)
#获取视频列表数据
变更
- 优化了某项功能的性能。
修复
- 修复了某个具体问题。 ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bruce_li_tc-0.7.3.tar.gz
(120.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bruce_li_tc-0.7.3-py3-none-any.whl
(143.3 kB
view details)
File details
Details for the file bruce_li_tc-0.7.3.tar.gz.
File metadata
- Download URL: bruce_li_tc-0.7.3.tar.gz
- Upload date:
- Size: 120.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92da75758ccbb4834af257172bc281b60a411844ef0c10ba2e7aef8f9f59f875
|
|
| MD5 |
7b4440d4956225728a7c42e7dd48971c
|
|
| BLAKE2b-256 |
324ac5b280a6faaa3d6f89c3135955218ebbbee4379ae58fc66d8eaede20a6e7
|
File details
Details for the file bruce_li_tc-0.7.3-py3-none-any.whl.
File metadata
- Download URL: bruce_li_tc-0.7.3-py3-none-any.whl
- Upload date:
- Size: 143.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c55c8e5d85c5862531a456562d0b71904500eac3b26dc6281367ceb2db284390
|
|
| MD5 |
8dabe3d322b57891322b33e210b9fc4c
|
|
| BLAKE2b-256 |
74e76ac44c7ac9b42d0882da5bb2caabcddf4a0c04cb760c947e05f540c4ed8c
|