Returns a live stream of Result objects for the given query.
(self, query, **kwargs)
| 1516 | return [u(x.get("name")) for x in data[0].get("trends", [])] |
| 1517 | |
| 1518 | def stream(self, query, **kwargs): |
| 1519 | """ Returns a live stream of Result objects for the given query. |
| 1520 | """ |
| 1521 | url = URL(TWITTER_STREAM) |
| 1522 | url.query["track"] = query |
| 1523 | url = self._authenticate(url) |
| 1524 | return TwitterStream(url, delimiter="\n", format=self.format, **kwargs) |
| 1525 | |
| 1526 | class TwitterStream(Stream): |
| 1527 |
no test coverage detected