remove emojies from posting reddit and others

This commit is contained in:
2025-04-26 14:57:25 +10:00
parent 5b4b4c0253
commit 1f1c5012c7
5 changed files with 12 additions and 8 deletions
+1
View File
@@ -812,6 +812,7 @@ def get_flickr_image_via_ddg(search_query, relevance_keywords):
response = requests.get(page_url, headers=headers, timeout=10)
response.raise_for_status()
soup = BeautifulSoup(response.content, 'html.parser')
time.sleep(1)
tags_elem = soup.find_all('a', class_='tag')
tags = [tag.text.strip().lower() for tag in tags_elem] if tags_elem else []