39 lines
No EOL
916 B
YAML
39 lines
No EOL
916 B
YAML
# Twitter API Configuration (API-based)
|
|
twitter:
|
|
# Base URL for Twitter API
|
|
base_url: "https://api.twitter.com/2"
|
|
|
|
# API-based authentication using bearer token
|
|
bearer_token: "AAAAAAAAAAAAAAAAAAAAAI5P0QEAAAAAVe2ijbvQuIj0Bsfv%2F98u9zYnHbk%3DJuKMSUNSy3ae71QWL58fS1S1KUcJVr3Om5hJjVF1BqJqzWZQLL"
|
|
|
|
# API endpoints
|
|
endpoints:
|
|
search: "/tweets/search/recent"
|
|
user: "/users"
|
|
timeline: "/timeline/home"
|
|
|
|
# Monitoring Configuration
|
|
monitoring:
|
|
# List of Twitter usernames to monitor
|
|
usernames:
|
|
- "elonmusk"
|
|
- "jack"
|
|
|
|
# Polling interval in seconds
|
|
polling_interval: 300 # 5 minutes
|
|
|
|
# Maximum number of tweets to fetch per request
|
|
max_tweets: 10
|
|
|
|
# Database Configuration
|
|
database:
|
|
# SQLite database file path
|
|
path: "tweets.db"
|
|
|
|
# Logging Configuration
|
|
logging:
|
|
# Log level (debug, info, warn, error)
|
|
level: "info"
|
|
|
|
# Log file path
|
|
file: "twitter_monitor.log" |