Skip to content

朋友圈

get_moments

获取朋友圈动态。

python
wechat.get_moments(client_id, max_id="0", timeout=None)
参数类型说明
client_idint客户端ID
max_idstr翻页ID("0"为首页)
timeoutint超时时间(秒)

get_friend_moments

获取好友的朋友圈。

python
wechat.get_friend_moments(client_id, username, first_page_md5="", max_id="0", timeout=None)
参数类型说明
client_idint客户端ID
usernamestr好友用户名
first_page_md5str首页MD5
max_idstr翻页ID
timeoutint超时时间(秒)

comment_moment

评论朋友圈。

python
wechat.comment_moment(client_id, object_id, content, timeout=None)
参数类型说明
client_idint客户端ID
object_idstr动态ID
contentstr评论内容
timeoutint超时时间(秒)

like_moment

点赞朋友圈。

python
wechat.like_moment(client_id, object_id, timeout=None)
参数类型说明
client_idint客户端ID
object_idstr动态ID
timeoutint超时时间(秒)

post_moment

发布朋友圈。

python
wechat.post_moment(client_id, object_desc, timeout=None)
参数类型说明
client_idint客户端ID
object_descstr朋友圈内容描述
timeoutint超时时间(秒)

upload_image

上传朋友圈图片。

python
wechat.upload_image(client_id, image_path, timeout=None)
参数类型说明
client_idint客户端ID
image_pathstr图片路径
timeoutint超时时间(秒)

基于 MIT 许可证发布