美文网首页
采集微博

采集微博

作者: 田边女斯基 | 来源:发表于2016-12-05 17:14 被阅读0次
        cont = re.match(r'^.+"mblog":(.*?)"card_type".+"mblog":(.*?)"card_type".+'
                        r'"mblog":(.*?)"card_type".+"mblog":(.*?)"card_type".+"'
                        r'mblog":(.*?)"card_type".+"mblog":(.*?)"card_type".+'
                        r'"mblog":(.*?)"card_type".+"mblog":(.*?)"card_type".+'
                        r'"mblog":(.*?)"card_type".+mblog":(.*?)"card_type".+mblog":(.*?)"card_type".+$',web_date.text)
    

    http://zhidao.baidu.com/link?url=iZFIhizPSM7bcCvYkWvYkpsDc8u1rBn35h0kgEQWMONs7Q_FH7hiWUuJfJKwwoqVMtu-WNG4oP_mCNHSxZjmWVx6l5Ak2Rn-F6ulkNb2PrW

    bcont = bytes((ord(i) for i in cont))#变成比斯特流
    bcont=bcont.decode('unicode-escape') #escape解密
    

    "retweeted_status": 转发的
    attitudes_count":6
    删除4个是没错的

    "retweeted_status":{"created_at":"\u4eca\u5929 11:40","id":4028633011505315,"mid":"4028633011505315","idstr":"4028633011505315","text":"\u3010\u300aCSGO\u300b\u56fd\u670d\u548c\u8c10\u7248\u53ef\u63d0\u524d\u4f53\u9a8c\u3011\u6709\u73a9\u5bb6\u53d1\u73b0\uff0c\u5728\u300aCSGO\u300b\u542f\u52a8\u9879\u4e2d\u52a0\u5165\u201c-perfectworld\u201d\u6307\u4ee4\u4fbf\u53ef\u4ee5\u4f53\u9a8c\u56fd\u670d\u7248\u672c\uff0c\u800c\u8bf8\u591a\u548c\u8c10\u5185\u5bb9\u5df2\u7ecf\u5b9e\u88c5\uff0c\u5305\u62ec\u9ed1\u8272\u8840\u6db2\uff0c\u5c31\u8fde\u201d\u6050\u6016\u5206\u5b50\u201c\u8bcd\u6c47\u90fd\u6210\u654f\u611f\u88ab\u548c\u8c10\u3002\u53bb\u6389\u6307\u4ee4\u540e\u53ef\u6062\u590d\u4e3a\u56fd\u9645\u6b63\u5e38\u7248\u3002<a data-url=\"http:\/\/t.cn\/RVLBfBF\" target=\"_blank\" href=\"http:\/\/weibo.cn\/sinaurl?u=http%3A%2F%2Fgames.sina.com.cn%2Ft%2Fn%2F2016-10-09%2Ffxwrhpn9447371.shtml%3Flocation%3D35\" ><i class=\"iconimg iconimg-xs\"><img src=\"http:\/\/u1.sinaimg.cn\/upload\/2014\/10\/16\/timeline_card_small_web_default.png\"><\/i><span class=\"surl-text\">\u300aCSGO\u300b\u56fd\u670d\u548c\u8c10...<\/span><\/a>","textLength":230,"source_allowclick":0,"source_type":1,"source":"\u5fae\u535a weibo.com","appid":780,"favorited":false,"pic_ids":["94d9c01fjw1f8lv6w6d5aj211y0lc0x5","94d9c01fjw1f8lv6wf4f0j211y0lcdkn","94d9c01fjw1f8lv6vzgunj20g4092776"],"thumbnail_pic":"http:\/\/ww2.sinaimg.cn\/thumbnail\/94d9c01fjw1f8lv6w6d5aj211y0lc0x5.jpg","bmiddle_pic":"http:\/\/ww2.sinaimg.cn\/bmiddle\/94d9c01fjw1f8lv6w6d5aj211y0lc0x5.jpg","original_pic":"http:\/\/ww2.sinaimg.cn\/large\/94d9c01fjw1f8lv6w6d5aj211y0lc0x5.jpg","user":{"id":2497298463,"screen_name":"\u65b0\u6d6a\u5355\u673a\u7535\u89c6\u6e38\u620f","profile_image_url":"http:\/\/tva2.sinaimg.cn\/crop.0.0.180.180.180\/94d9c01fjw1e8qgp5bmzyj2050050aa8.jpg","profile_url":"\/u\/2497298463","statuses_count":22317,"verified":true,"verified_reason":"\u65b0\u6d6a\u5355\u673a\u7535\u89c6\u6e38\u620f\u5b98\u65b9\u5fae\u535a","description":"\u65b0\u6d6a\u5355\u673a\u7535\u89c6\u6e38\u620f\u5c06\u4e3a\u60a8\u5e26\u6765\u6700\u65b0\u6700\u5168\u5355\u673a\u3001\u7535\u89c6\u65b0\u95fb\u4ee5\u53ca\u82b1\u8fb9\u65e0\u8282\u64cd\u8da3\u95fb\u3002\u6295\u7a3f\u8bf7\u79c1\u4fe1@\u65b0\u6d6a\u5355\u673a\u7535\u89c6\u6e38\u620f","remark":"","verified_type":3,"gender":"m","mbtype":2,"h5icon":{"main":"http:\/\/u1.sinaimg.cn\/upload\/2013\/02\/22\/v_blue_2x.png","other":[]},"ismember":1,"valid":null,"fansNum":"94\u4e07","follow_me":false,"following":false},"reposts_count":141,"comments_count":74,"attitudes_count":23,"isLongText":false,"mlevel":0,"visible":{"type":0,"list_id":0},"biz_ids":[100156],"biz_feature":0,"hasActionTypeCard":0,"hot_weibo_tags":[],"text_tag_tips":[],"userType":0,"positive_recom_flag":0,"gif_ids":"","is_show_bulletin":0,"page_info":{"page_id":"1001211022:100156comos-fxwrhpn9447371","page_title":"\u300aCSGO\u300b\u56fd\u670d\u548c\u8c10\u5185\u5bb9\u5df2\u5b9e\u88c5","page_url":"http:\/\/weibo.cn\/sinaurl?u=http%3A%2F%2Fgames.sina.com.cn%2Ft%2Fn%2F2016-10-09%2Ffxwrhpn9447371.shtml%3Flocation%3D35","page_pic":"http:\/\/n.sinaimg.cn\/games\/20161009\/jL_t-fxwrhpn9447348.jpg","content1":"\u300aCSGO\u300b\u56fd\u670d\u548c\u8c10\u5185\u5bb9\u5df2\u5b9e\u88c5","type":2,"content2":"\u867d\u7136\u5b8c\u7f8e\u6ca1\u6709\u653e\u51fa\u300aCSGO\u300b\u5185\u6d4b\u7684\u6d88\u606f\uff0c\u4f46\u662f\u6709\u7f51\u53cb\u53d1\u73b0\uff0c\u201c-perfectworld\u201d\u542f\u52a8\u9879\u6307\u4ee4\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\uff0c\u53ea\u8981\u5728\u542f\u52a8\u9879\u4e2d\u52a0\u5165\u8be5\u6307\u4ee4\uff0c\u5c31\u53ef\u4ee5\u4f53\u9a8c\u56fd\u670d\u548c\u8c10\u7248\u7684\u300aCS\uff1aGO\u300b\u3002","object_type":"gameArticle","act_status":0,"object_id":"1022:100156comos-fxwrhpn9447371","actionlog":{"oid":"1001211022:100156comos-fxwrhpn9447371","act_code":300,"act_type":1,"ext":"mid:4028634513818130|rid:"},"page_desc":"\u867d\u7136\u5b8c\u7f8e\u6ca1\u6709\u653e\u51fa\u300aCSGO\u300b\u5185\u6d4b\u7684\u6d88\u606f\uff0c\u4f46\u662f\u6709\u7f51\u53cb\u53d1\u73b0\uff0c\u201c-perfectworld\u201d\u542f\u52a8\u9879\u6307\u4ee4\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\uff0c\u53ea\u8981\u5728\u542f\u52a8\u9879\u4e2d\u52a0\u5165\u8be5\u6307\u4ee4\uff0c\u5c31\u53ef\u4ee5\u4f53\u9a8c\u56fd\u670d\u548c\u8c10\u7248\u7684\u300aCS\uff1aGO\u300b\u3002"},"created_timestamp":1475984422,"bid":"Ec0Sh6jBh","pics":[{"pid":"94d9c01fjw1f8lv6w6d5aj211y0lc0x5","url":"http:\/\/ww2.sinaimg.cn\/thumb180\/94d9c01fjw1f8lv6w6d5aj211y0lc0x5.jpg","size":"thumb180","geo":{"width":180,"height":180,"croped":false,"byte":173056}},{"pid":"94d9c01fjw1f8lv6wf4f0j211y0lcdkn","url":"http:\/\/ww1.sinaimg.cn\/thumb180\/94d9c01fjw1f8lv6wf4f0j211y0lcdkn.jpg","size":"thumb180","geo":{"width":180,"height":180,"croped":false,"byte":187764}},{"pid":"94d9c01fjw1f8lv6vzgunj20g4092776","url":"http:\/\/ww3.sinaimg.cn\/thumb180\/94d9c01fjw1f8lv6vzgunj20g4092776.jpg","size":"thumb180","geo":{"width":180,"height":180,"croped":false,"byte":116922}}],"like_count":23,"attitudes_status":0},"
    

    相关文章

      网友评论

          本文标题:采集微博

          本文链接:https://www.haomeiwen.com/subject/ligpyttx.html