6-20
<h4>连接测试2 redis</h4>
<p>redis-cli --raw -h 172.18.19.194 -p 6380</p>
<h4>已经关注,扫了码(带参数的码)</h4>
<pre><code><xml><ToUserName><![CDATA[gh_20217815edd6]]></ToUserName>
<FromUserName><![CDATA[onfAl5jId_fMrKOUUXROwoOUHXeA]]></FromUserName>
<CreateTime>1560834594</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[SCAN]]></Event>
<EventKey><![CDATA[wx8c15054f2e51ad02@80350]]></EventKey>
<Ticket><![CDATA[gQFA7zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAydXlJWVVDdE1jQkMxYkFIaE50Y3IAAgRkcQhdAwSAOgkA]]></Ticket>
</xml></code></pre>
<h4>首次扫码,并且未关注</h4>
<pre><code><xml><ToUserName><![CDATA[gh_20217815edd6]]></ToUserName>
<FromUserName><![CDATA[onfAl5jId_fMrKOUUXROwoOUHXeA]]></FromUserName>
<CreateTime>1560834978</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[unsubscribe]]></Event>
<EventKey><![CDATA[]]></EventKey>
</xml></code></pre>
<h4>未关注扫码(带参数的码) + 订阅</h4>
<pre><code><xml><ToUserName><![CDATA[gh_20217815edd6]]></ToUserName>
<FromUserName><![CDATA[onfAl5jId_fMrKOUUXROwoOUHXeA]]></FromUserName>
<CreateTime>1560834771</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[subscribe]]></Event>
<EventKey><![CDATA[qrscene_wx8c15054f2e51ad02@80350]]></EventKey>
<Ticket><![CDATA[gQEq8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyemJWU1UxdE1jQkMxOE9KaHh0Y0YAAgSycghdAwSAOgkA]]></Ticket>
</xml></code></pre>
<h4>在网页上直接调用微信接口</h4>
<p><a href="https://mp.weixin.qq.com/debug/cgi-bin/apiinfo?t=index&type=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95&form=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%E5%88%9B%E5%BB%BA%E6%8E%A5%E5%8F%A3%20/menu/creat">https://mp.weixin.qq.com/debug/cgi-bin/apiinfo?t=index&type=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95&form=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%E5%88%9B%E5%BB%BA%E6%8E%A5%E5%8F%A3%20/menu/creat</a></p>
<h4>各类文章在 cdn 的 json</h4>
<p>视频类(article_type = 2)</p>
<pre><code>{
"article_id":"80303",
"title":"农民工晚上想老婆,编了这首歌,火了!",
"publish_at":"1560161572",
"article_type":2,
"author_id":31,
"link":"http://vod.heywoodsminiprogram.com/sv/99694b1-16b40338a46/99694b1-16b40338a46.mp4",
"image_list":{
"index_thumb":"http://yuetu.heywoodsminiprogram.com/test/images/jpg/20196101551322.jpg",
"recommend_thumb":"http://yuetu.heywoodsminiprogram.com/test/images/jpg/20196101558224.jpg",
"share_thumb":"http://yuetu.heywoodsminiprogram.com/test/images/jpg/201961015524214.jpg",
"index_data_thumb":"http://yuetu.heywoodsminiprogram.com/test/images/jpg/201961015453279.jpg",
"background_thumb":null
},
"is_music":0,
"author_info":{
"author":"324",
"logo":"http://dev.heka4.site/mini-program-matrix/data/images/author/939590fd7fafcb3bacd1ce305e8e7266.gif"
},
"list_vedio_type":"0",
"width":"858",
"height":"486",
"cover_url":"http://vod.heywoodsminiprogram.com/453b320bb23148038bbe158e4f465f08/snapshots/2f5cc56010ee4041bae12321bb2e789e-00001.jpg",
"index_thumb_width":530,
"index_thumb_height":265,
"title_prefix_type":"0"
}</code></pre>
<p>文章类(article_type = 1)
<a href="http://goclick.heywoodsminiprogram.com/mini-program-matrix/data/json-data/61481.json">http://goclick.heywoodsminiprogram.com/mini-program-matrix/data/json-data/61481.json</a></p>
<p>图文音乐类 (3)
<a href="http://goclick.heywoodsminiprogram.com/mini-program-matrix/data/json-data/75639.json">http://goclick.heywoodsminiprogram.com/mini-program-matrix/data/json-data/75639.json</a></p>
<p>article_type 4 祝福系列
<a href="http://goclick.heywoodsminiprogram.com/mini-program-matrix/data/json-data/81629.json">http://goclick.heywoodsminiprogram.com/mini-program-matrix/data/json-data/81629.json</a></p>
<h4>oss 的概念</h4>
<p><a href="https://help.aliyun.com/document_detail/31827.html?spm=5176.2020520165.120.d31827.845770295weKUx">https://help.aliyun.com/document_detail/31827.html?spm=5176.2020520165.120.d31827.845770295weKUx</a></p>
<h4>关于 sts 授权上传</h4>
<p><a href="https://help.aliyun.com/document_detail/59670.html?spm=a2c4g.11186623.6.891.6e004092vuJzmJ">https://help.aliyun.com/document_detail/59670.html?spm=a2c4g.11186623.6.891.6e004092vuJzmJ</a></p>
<p>sts 授权一定要加上 security_token
objectname 就是目录 + 文件名 (如 xxx/xx.jpg)</p>
<h4>点开就看的 ac_token</h4>
<p>get s:darkroomliteweb:guidesharefollow:accesstoken:wx9cece226eb4157af</p>
<h4>点开就看相册的 lock</h4>
<p>get s:darkroomliteweb:guidesharefollow:lock:wx9cece226eb4157af</p>
<h4>爬虫-小板凳</h4>
<p>爬取
scrapy crawl xiaobandengSpider -o xiaobangdeng.json</p>
<p>更新到数据库
/home/install/py/bin/python3.7 upload_to_video_dkjk.py --file xiaobangdeng.json</p>