cwd () / "config.cfg" config = ConfigParser () config. □ The first step will be to create a config file ( config.cfg) with your Twitter API tokens.įrom configparser import ConfigParser from pathlib import Path import tweepy # Path to the config file with the keys make sure not to commit this fileĬONFIG_FILE = Path. (for details on the Tweet object visit the API docs) Let’s start with an example to collect some Tweets from your public timeline We will be using the Tweepy library for this (docs here )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |