摘要:
微信公众号上传素材 #weixin_wechat/upload_news.py """ 素材 """ from werobot import WeRoBot from datetime import datetime ,timedelta import re,time import upload_m 阅读全文
posted @ 2021-02-24 12:50
ministep88
阅读(222)
评论(0)
推荐(0)
摘要:
微信公众号图片上传处理 #weixin_wechat/upload_media.py """ 新增临时素材 """ from werobot import WeRoBot import urllib import requests,os robot = WeRoBot() robot.config[ 阅读全文
posted @ 2021-02-24 12:49
ministep88
阅读(262)
评论(0)
推荐(0)
摘要:
激活微信公众号 默认:python虚拟环境和project_name相同,保持统一便于统计 创建python环境:conda create -n weixin_wechat python=3.8 激活虚拟环境:source activate weixin_wechat 微信公众号token设置 参考 阅读全文
posted @ 2021-02-24 12:48
ministep88
阅读(326)
评论(0)
推荐(0)
摘要:
内容解析 目录结果 #weixin_wechat/xinwenlianbo/get_cctv_xinwenlianbo.py # -*- coding: utf-8 -*- """ 爬虫源:[新闻联播](https://tv.cctv.com/lm/xwlb/index.shtml?spm=C312 阅读全文
posted @ 2021-02-24 12:46
ministep88
阅读(124)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- import requests import re import time #import pprint #from bs4 import BeautifulSoup from datetime import datetime ,timedelta i 阅读全文
posted @ 2021-02-24 12:15
ministep88
阅读(108)
评论(0)
推荐(0)
摘要:
处理格式如下: content = re.sub('\s+', '', str(content)).strip() content = re.sub(r'\\r\\n','',content).strip() content = re.sub(r"'',",'',content).strip() c 阅读全文
posted @ 2021-02-24 12:03
ministep88
阅读(634)
评论(0)
推荐(0)

浙公网安备 33010602011771号