I have installed twint with:
pip3 install twint
which resulted in a successful installation:
Successfully installed twint-2.1.13
It works to get tweets from twitter
using Command Prompt(CLI) commands but when I try to run the example using a Python file as app.py
it gives me the error:
Traceback (most recent call last): File "app.py", line 82, in <module> main() File "app.py", line 77, in main echo_all(updates) File "app.py", line 48, in echo_all send_message(text, chat) File "app.py", line 64, in send_message c = twint.Config() AttributeError: module 'twint' has no attribute 'Config'
Here is how my app.py
file looks like:
import twintc = twint.Config()c.Username = "twitterAccountName"twint.run.Search(c)
However, I looked twint related issues on GitHub found here but the solution provided here not worked for me. Does anyone know where the error coming from? How do I fix it?