Using Birdy API for twitter collection stream, does it support data collection from sample.json endpoint

python

#1

I am using the Python API Birdy for tweet collection and I was wondering if it supported collection from sample.json, I see plenty of examples for collection from filter.json endpoint but not the former any help/ideas would be well received


#2

Works for me:

from birdy.twitter import StreamClient
client = StreamClient("consumerkey",
                    "consumertoken",
                    "accesskey",
                    "accesstoken")

response = client.stream.statuses.sample.get()
for data in response.stream():
    print data