From a41a86e298894f793c63b481d015132f4cb57680 Mon Sep 17 00:00:00 2001 From: Cyril NOVEL <5690282+cnovel@users.noreply.github.com> Date: Tue, 7 Jul 2026 22:58:39 +0200 Subject: [PATCH] Skip video article for now --- gen_feed.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gen_feed.py b/gen_feed.py index 23bcf06..86c6224 100644 --- a/gen_feed.py +++ b/gen_feed.py @@ -80,7 +80,13 @@ def generate_feed(town_url, feed_url, feed_path): print(f"Found {len(small_articles)} articles...") for small_article in small_articles: t = small_article.find_all("span")[1].text - link = "https://" + main_domain + small_article.find("a").get("href") + if small_article.find("a").get("href").startswith("https"): + link = small_article.find("a").get("href") + else: + link = "https://" + main_domain + small_article.find("a").get("href") + if "/videos/" in link: + print(f" Skipping {link} since it's a video") + continue is_paid = len(small_article.find_all("span", class_="flagPaid")) > 0 articles.append(Article(t, link, is_paid))