This commit is contained in:
2025-05-04 10:35:31 +10:00
parent 64d17d5599
commit 5554abdc4a
4 changed files with 60 additions and 38 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ def curate_from_google_trends(geo_list=['US']):
print(f"Trying Google Trend: {title} from {source_name}")
logging.info(f"Trying Google Trend: {title} from {source_name}")
image_query, relevance_keywords, skip = smart_image_and_filter(title, summary)
image_query, relevance_keywords, main_topic, skip = smart_image_and_filter(title, summary)
if skip:
print(f"Skipping filtered Google Trend: {title}")
logging.info(f"Skipping filtered Google Trend: {title}")
@@ -250,7 +250,7 @@ def curate_from_google_trends(geo_list=['US']):
final_summary = insert_link_naturally(final_summary, source_name, link)
post_data, author, category, image_url, image_source, uploader, pixabay_url = prepare_post_data(final_summary, title)
post_data, author, category, image_url, image_source, uploader, pixabay_url = prepare_post_data(final_summary, title, main_topic)
if not post_data:
attempts += 1
continue