question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not sure if this has been answered already. I’m new to tweepy and have been following the streaming guide on the docs page.

This is my entire script (basically copied from the linked page).

import tweepy

api_key = ''
api_secret = ''
auth = tweepy.AppAuthHandler(api_key, api_secret)
api = tweepy.API(auth)

class MyStreamListener(tweepy.StreamListener):

    def on_connect(self):
        print("Hi")

    def on_status(self, status):
        print(status.text)

    def on_disconnect(self, notice):
        print(notice)


myStreamListener = MyStreamListener()
myStream = tweepy.Stream(auth=api.auth, listener=myStreamListener)
myStream.filter(track=['python'])

There is no output to my console when run, only that it exited with code 0. Any help would be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Harmon758commented, Jan 13, 2021

Not for streaming with the POST statuses/filter endpoint, no. It requires authentication with user context.

0reactions
Kenobiumcommented, Jan 13, 2021

Is there a way to authorize with a bearer token (like using a plain GET request with an authentication header)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Best Webcam Filter Apps for Streaming | Digital Trends
Best webcam filter apps for streaming · Snap Camera · ManyCam · Logitech Capture · AlterCam · YouCam 9 Deluxe ...
Read more >
FREE Face Filters for OBS Streaming - YouTube
So you want to use Face Filters for OBS Streaming for FREE. Entertain your viewers with filters or just have a lot of...
Read more >
How to Apply Filters to Your Live Streams and Videos - YouTube
Can you apply filters to your live streams to add style or to give them a different look?For example, maybe you want to...
Read more >
Filter Amazon, Netflix, HBO Max and Disney Plus ... - ClearPlay
Filter Amazon, Netflix, HBO Max and Disney Plus streaming movies with the ClearPlay extension for Google ... Start filtering with your 30-days free...
Read more >
5 best webcam face filter apps for streaming - KnowTechie
AlterCam is a Windows-only webcam face filters app released in 2014 to serve a purpose for live streaming and post-processing initiatives. The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found