如何使用Twitter流媒体API?

2024-05-21 07:11:18 发布

您现在位置:Python中文网/ 问答频道 /正文

stream.filter(locations=[-122.75,36.8,-121.75,37.8,-74,40,-73,41],track=["twitpic"])

这很管用。但是,它不是“和”。是“或者”。此行获取位置或关键字。 我怎么做“和”?在

以下是我使用的库的代码:

^{pr2}$

https://github.com/joshthecoder/tweepy/blob/master/tweepy/streaming.py


Tags: 代码httpsgithubmastercomstreamtrack关键字
1条回答
网友
1楼 · 发布于 2024-05-21 07:11:18

http://dev.twitter.com/pages/streaming_api_methods#locations

^{bq}$

。。。在

Multiple bounding boxes may be specified by concatenating latitude/longitude pairs, for example: locations=-122.75,36.8,-121.75,37.8,-74,40,-73,41 would track tweets from San Francisco and New York City.

有关更多信息,请阅读完整的文档。在

相关问题 更多 >