how can i find out if a url is mastodon, pleroma, peertube or an other kind of fediverse instance?

/cc @posiputt

@andrej
You can read out the standardized NodeInfo to get the server type. Here's an example in the method platformDetection:
https://notabug.org/tofus/fediverse-instancecounter/src/master/instancecounter.py
@posiputt
tofus/fediverse-instancecounter

@schmidt_fu @andrej @posiputt This seems to be the only reliable way ...
@andrej @posiputt Check the server header in the response

@schmic @posiputt That was also my first though, but...

Pleroma: `server: nginx/1.14.0 (Ubuntu)`
Peertube: `server: nginx`

@andrej @posiputt Well, damn, I only checked with Mastodon 😜

There a differences in the URLs, of course. So you could use RegEx on those.

But why not state your problem instead of asking for a specific solution?

@schmic @posiputt Hm, I thought I stated a problem?

But I can give you a bit more context: for different intstance types (e.g. pleomora, peertub, misskey etc), there are different url schemas for an user's RSS or atom feed. Given a list of my followers, I want to find out on which kind of instance they are, in order to generate the correct RSS feed url for further processing.