MCPcopy Index your code
hub / github.com/clips/pattern / stream

Method stream

pattern/web/__init__.py:1518–1524  ·  view source on GitHub ↗

Returns a live stream of Result objects for the given query.

(self, query, **kwargs)

Source from the content-addressed store, hash-verified

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
1526class TwitterStream(Stream):
1527

Callers 1

Calls 3

_authenticateMethod · 0.95
URLClass · 0.85
TwitterStreamClass · 0.85

Tested by

no test coverage detected