Python 提取新浪微博转载微博的用户名
来源:互联网 发布:西南大学网络教育 答案 编辑:程序博客网 时间:2024/04/29 18:46
CODE:
#!/usr/bin/python # -*- coding: utf-8 -*-'''Created on 2014-7-22@author: guaguastd@name: findRepostUser.py''' if __name__ == '__main__': #import json # get weibo_api to access sina api from sinaWeiboLogin import sinaWeiboLogin sinaWeiboApi = sinaWeiboLogin() # import sinaWeibo from sinaWeibo import findWeiboMid # import sinaWeoboStatuses from sinaWeiboStatuses import userTimeline # get the new 200 weibo at most statuses = userTimeline(sinaWeiboApi, 200) #print json.dumps(statuses, indent=1) # get the weibo mid if repost_count is above than 0 weiboMid = findWeiboMid(statuses) for mid in weiboMid: _reposts = sinaWeiboApi.statuses__repost_timeline(id=mid) print [r['user']['screen_name'] for r in _reposts['reposts']]
RESULT:
[u'\u851a\u6ee2\u83f2668', u'\u5219\u677e\u5948\u6d25\u5b501992', u'\u5927\u53d4\u63a7_\u5b87\u7ae5\u66761995']
0 0
- Python 提取新浪微博转载微博的用户名
- Python 提取新浪公共微博中转载次数最多的微博转载数,用户名,内容
- Python 提取新浪微博的博文中的元素(包含Text, Screen_name)
- 新浪微博数据挖掘(python)本周人们在讨论的热门话题的提取
- Python模拟新浪微博登录转载,是我的那篇资料来源
- 新浪微博python API的使用
- python编写的新浪微博爬虫
- 新浪微博数据挖掘食谱之九: 用户篇 (获取转发微博的用户名)
- python登陆新浪微博
- 新浪微博Python站內應用認證
- python登录新浪微博
- 新浪微博Python登陆
- Python新浪微博爬虫
- python新浪微博爬虫
- 新浪微博技术架构分析-转载
- 新浪微博技术架构分析-转载
- 新浪微博技术架构分析-转载
- 新浪微博技术架构分析-转载
- 字字珠玑:百度离职总结,如何做个好员工
- heritrix 在myeclipse中的配置
- 我知道的大数据
- BLOG搬家咯
- poj 3468 A Simple Problem with Integers 线段树
- Python 提取新浪微博转载微博的用户名
- iptables 屏蔽ip
- oc_语法1
- 移动开发大调查:2%码农拿走54%的APP收入
- Android titlebar制作方法
- UVA 11542 - Square(高斯消元)
- ACM暑假集训训练场
- 分布式破解WPA密码工具
- java中commons-beanutils的介绍