1
Fork 0
twitter-monitor/config/default.yaml
2025-04-07 12:44:22 +07:00

46 lines
No EOL
1.2 KiB
YAML

# Twitter API Configuration
twitter:
# Base URL for Twitter API
base_url: "https://api.twitter.com/2"
# Authentication Method (choose one):
# 1. Session-based authentication using cURL command
# 2. API-based authentication using bearer token
# For session-based authentication:
# curl_command: "curl 'https://twitter.com/i/api/2/timeline/home.json' -H 'authorization: Bearer ...' -H 'cookie: ...'"
# For API-based authentication:
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"