fix image error, and requirements file
This commit is contained in:
+1
-1
@@ -1174,7 +1174,7 @@ def get_flickr_image(search_query, relevance_keywords, main_topic, specific_term
|
||||
return None
|
||||
|
||||
# Check for website URLs in the image text
|
||||
url_pattern = r'(?:https?://)?(?:www\.)?[\w-]+\.(?:com|org|net|edu|gov|co\.uk|io)(?:/[\w-./?%&=]*)?'
|
||||
url_pattern = r'(?:https?://)?(?:www\.)?[\w\-]+\.(?:com|org|net|edu|gov|co\.uk|io)(?:/[\w\-./?%&=]*)?'
|
||||
if re.search(url_pattern, text):
|
||||
logger.info(f"Skipping image with embedded website URL: {image_url} (detected: {text})")
|
||||
return None
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ if [ "$1" == "start" ]; then
|
||||
else
|
||||
log "Script foodie_engagement_generator.py not found"
|
||||
fi
|
||||
# Start foodie_weekly_thread.py
|
||||
# Start foodie_weekly_thread.py (commented out to prevent execution)
|
||||
#if [ -f "foodie_weekly_thread.py" ]; then
|
||||
# if ! check_running "foodie_weekly_thread"; then
|
||||
# log "Running foodie_weekly_thread.py..."
|
||||
|
||||
+3
-3
@@ -8,8 +8,8 @@ Pillow==11.1.0
|
||||
pytesseract==0.3.13
|
||||
feedparser==6.0.11
|
||||
webdriver-manager==4.0.2
|
||||
tweepy==4.14.0
|
||||
python-dotenv==1.0.1
|
||||
flickr-api==0.7.1
|
||||
tweepy==4.15.0
|
||||
python-dotenv==1.1.0
|
||||
flickr-api==0.7.7
|
||||
filelock==3.16.1
|
||||
requests-oauthlib==2.0.0
|
||||
Reference in New Issue
Block a user