Support of Google's news sitemaps #60

Open
opened 2025-11-17 14:20:34 +00:00 by Sebastian_Berlin · 5 comments
Sebastian_Berlin commented 2025-11-17 14:20:34 +00:00 (Migrated from codeberg.org)

Google uses a special XML-Sitemap to index news articles to its news search engine.

Those structure doesn't work with feed2fedi. I've tested it with the news feed of the soccer club FC Bayern München.

Could you please add this syntax to work with your tool?

Google uses a [special XML-Sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap) to index news articles to its news search engine. Those structure doesn't work with _feed2fedi_. I've tested it with the [news feed of the soccer club FC Bayern München](https://fcbayern.com/de/news-sitemap.xml). Could you please add this [syntax](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap#news-sitemap-reference) to work with your tool?
marvin8 commented 2025-11-18 06:14:07 +00:00 (Migrated from codeberg.org)

Feed2Fedi is using feedparser internally to read rss and atom feeds. I'll have to try if feedparser is able to parse the feed you shared.

Feed2Fedi is using feedparser internally to read rss and atom feeds. I'll have to try if feedparser is able to parse the feed you shared.
marvin8 commented 2025-11-22 06:36:36 +00:00 (Migrated from codeberg.org)

That sitemap for FC Bayern Munchen produces an http error 403 when I try and load it with httpx. While that site does that I can't really go any further unless you have some other example sitemaps that load without any problem with httpx.

That sitemap for FC Bayern Munchen produces an http error 403 when I try and load it with httpx. While that site does that I can't really go any further unless you have some other example sitemaps that load without any problem with httpx.
Sebastian_Berlin commented 2025-11-22 11:10:51 +00:00 (Migrated from codeberg.org)

It's actually a widely used sitemap almost every news magazine uses so that Google News can index its articles. So please try it with this or this or this sitemap.

It's actually a widely used sitemap almost every news magazine uses so that Google News can index its articles. So please try it with [this](https://www.mdr.de/news-sitemap.xml) or [this](https://www.suedkurier.de/news.sitemap.xml) or [this](https://www.adac.de/sitemaps/sitemap-news.xml) sitemap.
marvin8 commented 2025-11-22 20:52:29 +00:00 (Migrated from codeberg.org)

Thanks for the additional links.

I had a quick try and on first look I don't think feedparser, which I use, supports news sitemaps.

For reference. I have asked the mainter of feedparser if there are any plans on supporting it in this issue #535

Let's give it a couple of days to see if there is a response.

Thanks for the additional links. I had a quick try and on first look I don't think feedparser, which I use, supports news sitemaps. For reference. I have asked the mainter of feedparser if there are any plans on supporting it in [this issue #535](https://github.com/kurtmckee/feedparser/issues/535) Let's give it a couple of days to see if there is a response.
Sebastian_Berlin commented 2025-11-22 21:04:31 +00:00 (Migrated from codeberg.org)

Thanks a lot!

Thanks a lot!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/feed2fedi#60
No description provided.