批量提取公众号文章的python脚本

如何获取?http://xingyue.artizen.me

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
coding:utf-8
import json
import pprint

links_array = []
with open('msg.txt',encoding='utf-8') as file:
	for line in file:
		s = json.loads(line)
		[links_array.append(i['link']) for i in s['app_msg_list']]
		
with open('link.txt','w') as f :
	[f.write(l + '\n') for l in links_array]
updatedupdated2024-10-152024-10-15