fix image error, and requirements file

main
Shane 7 months ago
parent f47a9f1249
commit 599d352cbd
  1. 2
      foodie_utils.py
  2. 2
      manage_scripts.sh
  3. 6
      requirements.txt

@ -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

@ -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..."

@ -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
Loading…
Cancel
Save