我能够检索流推成功使用tweepy。我在流过滤器中提供关键字和hashtags列表,使用:
stream.filter(track=utils.hash_tag_mapping)
其中hash_tag_mapping
(包含500多个关键字的列表):
[\"old spice\" after hours deodorant, \"old spice\" cologne, \"old spice\" deodorant, braun (oral-b OR oralb), baby wash, ... ]
现在,当我收到tweet时,我想获取接收tweet的关键字。它也可以包含多个关键字
例如,tweet文本:
What difference would it make when we use old spice deodorant instead of after hours deodorant?
应提取关键字:
我们有没有办法提取推特的关键词
目前没有回答
相关问题 更多 >
编程相关推荐