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
|
return None
|
||||||
|
|
||||||
# Check for website URLs in the image text
|
# 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):
|
if re.search(url_pattern, text):
|
||||||
logger.info(f"Skipping image with embedded website URL: {image_url} (detected: {text})")
|
logger.info(f"Skipping image with embedded website URL: {image_url} (detected: {text})")
|
||||||
return None
|
return None
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,7 @@ if [ "$1" == "start" ]; then
|
|||||||
else
|
else
|
||||||
log "Script foodie_engagement_generator.py not found"
|
log "Script foodie_engagement_generator.py not found"
|
||||||
fi
|
fi
|
||||||
# Start foodie_weekly_thread.py
|
# Start foodie_weekly_thread.py (commented out to prevent execution)
|
||||||
#if [ -f "foodie_weekly_thread.py" ]; then
|
#if [ -f "foodie_weekly_thread.py" ]; then
|
||||||
# if ! check_running "foodie_weekly_thread"; then
|
# if ! check_running "foodie_weekly_thread"; then
|
||||||
# log "Running foodie_weekly_thread.py..."
|
# log "Running foodie_weekly_thread.py..."
|
||||||
|
|||||||
+3
-3
@@ -8,8 +8,8 @@ Pillow==11.1.0
|
|||||||
pytesseract==0.3.13
|
pytesseract==0.3.13
|
||||||
feedparser==6.0.11
|
feedparser==6.0.11
|
||||||
webdriver-manager==4.0.2
|
webdriver-manager==4.0.2
|
||||||
tweepy==4.14.0
|
tweepy==4.15.0
|
||||||
python-dotenv==1.0.1
|
python-dotenv==1.1.0
|
||||||
flickr-api==0.7.1
|
flickr-api==0.7.7
|
||||||
filelock==3.16.1
|
filelock==3.16.1
|
||||||
requests-oauthlib==2.0.0
|
requests-oauthlib==2.0.0
|
||||||
Reference in New Issue
Block a user