Write a Python program to get the number of followers of a specific account on Twitter (taking an url as an input, for example https://twitter.com/KMbappe)
Before running the program, install pipenv
as follows:
Mac:
brew install pipenv
Ubuntu:
pip install pipenv
Make sure it is installed in your global packages.
- Run
pipenv install
- Run the program:
pipenv run python twitter.py
- Enter valid twitter url
Enter twitter url: https://twitter.com/KMbappe
Twitter name: Kylian Mbappé
Number of followers: 4,005,448