Advanced Python utilities for time and data processing
Project description
变更日志
[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.2.tar.gz
(114.3 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.2-py3-none-any.whl
(138.0 kB
view details)
File details
Details for the file bruce_li_tc-0.7.2.tar.gz.
File metadata
- Download URL: bruce_li_tc-0.7.2.tar.gz
- Upload date:
- Size: 114.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d69ad2b254a73dfcf1eb97c38f810efc916d321f11cd0af9dca479498fb94aa8
|
|
| MD5 |
6539bbde0b7e613e4a5fbdeb5db2d115
|
|
| BLAKE2b-256 |
6a3f212d826a15042f3c484ce11e43cf3eea273642b2931a8bb2b2685a57d075
|
File details
Details for the file bruce_li_tc-0.7.2-py3-none-any.whl.
File metadata
- Download URL: bruce_li_tc-0.7.2-py3-none-any.whl
- Upload date:
- Size: 138.0 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 |
b529ea0b3da5291c7be5fd779105fe4a96f1b7b171a31fe482bfdb7ba50ccf12
|
|
| MD5 |
6328b6b90018c901deecf3b10e20950e
|
|
| BLAKE2b-256 |
c5899f584012c42e6af8c8e6ba6ef3733f1316665e7727d78eb0f23f45a818c5
|