欢迎光临 - 我的站长站,本站所有资源仅供学习与参考,禁止用于商业用途或从事违法行为!

软件下载

批量下载公众号内容/音频/视频Python工具+源码
2023-11-13 我的站长站

批量下载公众号内容/音频/视频Python工具+源码

  • 软件编号:1770
  • 软件分类:软件下载
  • 点击次数:92
  • 软件语言:简体中文
  • 软件大小:9.6 MB
  • 下载权限:免费下载
  • 软件授权:试用
  • 软件售价:免费下载
  • 下载次数:3
立即下载

批量下载方法

1、下载软件,打开, 输入模板地址即可下载。

批量下载公众号内容/音频/视频Python工具+源码

第2次下载会跳过已经下载过的文章,再用这个html批量转PDF工具  https://wdzzz.lanzoue.com/iSpV90fbtpqh

还生成了一个文章列表excel,包含文章日期,文章标题,文章链接和文章封面。

批量下载公众号内容/音频/视频Python工具+源码

部分代码如下:

def down(begin,count):
url2=url.replace('#wechat_redirect','')
url_home = f'{url2}&begin={begin}&count={count}&action=appmsg_list&f=json&r=0.26146868035616433&appmsg_token='
res = requests.post(url_home,headers=headers,verify=False).json()
for i in res['appmsg_list']:
if html.unescape(i['link']) in urls:
print('已经下载过文章:'+html.unescape(i['link']))
continue
data = requests.get(i['link'],headers=headers,verify=False)
content = data.text.replace('data-src', 'src')
try:
date = time.strftime('%Y-%m-%d', time.localtime(int(i['sendtime'])))
title = i['title']
print('正在下载文章:',title,i['link'])
with open(date+'_'+trimName(title)+'.html', 'w', encoding='utf-8') as f:
f.write(content)
except Exception as e:
with open(str(randint(1,10))+'.html', 'w', encoding='utf-8') as f:
f.write(content)
print('错误信息:',e)
with open(fname, 'a+', encoding=encoding) as f2:
f2.write(date+','+title + ','+i['author'] + ','+i['digest'] + ','+html.unescape(i['link'])+ ','+i['cover']+'\n')
相关专题
公众号
公众号
2020-11-21 130

整理微信公众号全套相关资源,内含精美模板、运营源码、实用辅助工具,助力新手快速上手公众号搭建与日常运营管理。...

下载地址

· 积分下载:下载扣除对应积分,不扣除下载次数
· VIP免费:VIP会员免费下载,扣除下载次数
· 下载即代表您已阅读并同意 [服务条款]