|
|
|
|
@ -1,6 +1,13 @@ |
|
|
|
|
import logging |
|
|
|
|
|
|
|
|
|
logging.basicConfig( |
|
|
|
|
filename='/home/shane/foodie_automator/logs/check_x_capacity.log', |
|
|
|
|
level=logging.DEBUG, |
|
|
|
|
format='%(asctime)s - %(levelname)s - %(message)s' |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
import requests |
|
|
|
|
from requests_oauthlib import OAuth1 |
|
|
|
|
import logging |
|
|
|
|
from datetime import datetime, timezone |
|
|
|
|
from dotenv import load_dotenv |
|
|
|
|
import os |
|
|
|
|
@ -10,13 +17,6 @@ from foodie_config import X_API_CREDENTIALS |
|
|
|
|
# Load environment variables from .env file |
|
|
|
|
load_dotenv() |
|
|
|
|
|
|
|
|
|
# Set up logging |
|
|
|
|
logging.basicConfig( |
|
|
|
|
filename='/home/shane/foodie_automator/logs/check_x_capacity.log', |
|
|
|
|
level=logging.DEBUG, |
|
|
|
|
format='%(asctime)s - %(levelname)s - %(message)s' |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Function to delete a tweet |
|
|
|
|
def delete_tweet(tweet_id, auth): |
|
|
|
|
try: |
|
|
|
|
|