Skip to main content

Advanced Python utilities for time and data processing

Project description

变更日志

[0.7.4] - wechatauto包

变更

  • 修改crawl函数里面见名知意

[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


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.4.tar.gz (120.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bruce_li_tc-0.7.4-py3-none-any.whl (143.4 kB view details)

Uploaded Python 3

File details

Details for the file bruce_li_tc-0.7.4.tar.gz.

File metadata

  • Download URL: bruce_li_tc-0.7.4.tar.gz
  • Upload date:
  • Size: 120.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for bruce_li_tc-0.7.4.tar.gz
Algorithm Hash digest
SHA256 1744571a260c7c12144dc6f79e0e9e812fec718f99f028b8e6e0599b6bbeaa8a
MD5 1a4817bdb8ed9658eb0b0fb9459a270a
BLAKE2b-256 d818ad0c6f111c19b29c78b28c1e5986b1ccba02805447cb5bbc9439293716f2

See more details on using hashes here.

File details

Details for the file bruce_li_tc-0.7.4-py3-none-any.whl.

File metadata

  • Download URL: bruce_li_tc-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 143.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for bruce_li_tc-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d83ff294a9d40f7182fdba0248ed3d2eb52e55ac42e50c861c95ad4fd6005f05
MD5 eabf672fe71fe05c9cc7a718afe854f7
BLAKE2b-256 e1f04bd645ab50dbd3a5b9a17f47f412eba9dd5a94a2d421a2accdaea383b8a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page