In this tutorial you will learn how to setup Twitter to obtain tweets using the Python library tweepy.
- Follow the instructions in the file twitter-setup.md.
On Windows open the Start menu and open the "Anaconda Command Prompt".
On macOS: Open your terminal
Create a new Anaconda environment (we call it twitter
):
conda create -n twitter python=3.9 pip tweepy pandas altair jupyter --y
Activate the environment:
conda activate twitter
-
Click on the green "Code" button at the top of this page
-
Choose
Download ZIP
-
On your machine: unzip
twitter-tutorial
in a folder of your choice. -
Start VS Code and open the folder
twitter-tutorial
with "Open Folder":
-
This opens the VS Code Explorer und you should see all files in
twitter-tutorial
-
Proceed with the next step
-
In your VS Code Explorer, open the file
keys.py
-
Insert your Twitter keys in the Python file
keys.py
- In your VS Code Explorer, open the file
tweepy-setup.ipynb