]> git.mxchange.org Git - fba.git/log
fba.git
17 months agoContinued:
Roland Häder [Tue, 30 May 2023 03:14:10 +0000 (05:14 +0200)]
Continued:
- only list entries where the software has been detected
- still this will list non-fediverse "instances" such as normal websites

17 months agoContinued:
Roland Häder [Tue, 30 May 2023 01:26:24 +0000 (03:26 +0200)]
Continued:
- also fetch origin and nodeinfo_url here
- also add instance if not found
- improved some log messages

17 months agoContinued:
Roland Häder [Tue, 30 May 2023 01:19:40 +0000 (03:19 +0200)]
Continued:
- fixed indenting
- also include type (exception name) in log message

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 20:32:24 +0000 (22:32 +0200)]
Continued:
- no need for updating last_instance_fetc/last_nodeinfo here

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 19:33:45 +0000 (21:33 +0200)]
Continued:
- made executable
- added interpreter line and encoding

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 19:05:16 +0000 (21:05 +0200)]
Continued:
- added .json to all JSON responses
- added response class JSONResponse (I hope it is not overstated this way?
- cleaned up imports a bit (only used once can be referenced directly)

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 18:58:44 +0000 (20:58 +0200)]
Continued:
- splitted "scoreboard.html" out of index.html
- added route + template for "robots.txt request
- renamed "app" to "router"

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 18:40:12 +0000 (20:40 +0200)]
Continued:
- move templates to own folder

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 18:08:22 +0000 (20:08 +0200)]
Continued:
- introduced error_log table and corresponding log_error() function
- added error_log_cleanup for cleaning up old records (default: 7 days)

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 17:34:31 +0000 (19:34 +0200)]
Continued:
- no bold here, I prefer that for head lines

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 17:13:00 +0000 (19:13 +0200)]
Continued:
- introduced config key 'host', so you can let this run on an other IP address
- recommended is 127.0.0.1, of course and then setup a reverse-proxy (in
  Apache's terminology)
- cleaned up imports

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 16:31:34 +0000 (18:31 +0200)]
Continued:
- removed superflous 'get_peers_url' from database, it was only logged and
  get_peers() cannot make use of it as it depends on detected software

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 16:25:43 +0000 (18:25 +0200)]
Continued:
- introduced has_pending_nodeinfos()
- also log exception name (aka. type)

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 06:29:10 +0000 (08:29 +0200)]
Continued:
- is_instance_registered() caused tons of SQL queries, let's introduce some
  cache here
- 1 hour for recheck is good for development (even shorter) but a bad idea in
  the wild

17 months agoContinued:
Roland Häder [Mon, 29 May 2023 00:48:40 +0000 (02:48 +0200)]
Continued:
- add_peers() now returns a list of peers, dict doesn't make sense here
- also handled error messages from JSON API POST requests

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 23:55:24 +0000 (01:55 +0200)]
Continued:
- also fetch nodeinfo_url from database and handle it over so no redundant
  static checks will happen

17 months agoLet's do this proper. Here you go, FSF!
Roland Häder [Sun, 28 May 2023 16:16:00 +0000 (18:16 +0200)]
Let's do this proper. Here you go, FSF!

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 16:02:05 +0000 (18:02 +0200)]
Continued:
- added last_instance_fetch timestamp

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 15:52:55 +0000 (17:52 +0200)]
Continued:
- maybe str(e) helps here and there?

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 14:34:57 +0000 (16:34 +0200)]
Continued:
- only a warning, 'activitypub-troll.cf' is to much rampant
- skip to next entry in case if being blacklisted or no 'host' found

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 13:19:41 +0000 (15:19 +0200)]
Continued:
- 100 rows should work! (the fail-safe check "fetched versus expected" will
  kick in here)
- also read origin and pass over 'origin' during fetching instances

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 12:06:53 +0000 (14:06 +0200)]
Continued:
- encapsulted into function add_peers()
- need to add "Content-Type: application/json" for API requests, thanks to Kromonos
- introduced 'api_headers' for JSON API requests

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 11:16:07 +0000 (13:16 +0200)]
Continued:
- more consistency in table column names and also corresponding variables

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 11:12:14 +0000 (13:12 +0200)]
Continued:
- res.json() can somtimes not being checked (?)
- also need to check each element as it might return 'None' causing error

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 10:15:19 +0000 (12:15 +0200)]
Continued:
- some misskey instances only allow 10 items per fetch
- also used more masked strings

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 09:36:18 +0000 (11:36 +0200)]
Continued:
- also ngrok-free.app is a testing/development ground, no productive/live
  instances will be found there
- please don't abuse their kind services for hosting a live instance!
- didn't log variable "instance", ops

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 09:24:42 +0000 (11:24 +0200)]
Continued:
- let also user install their software on sub paths ...

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 09:19:13 +0000 (11:19 +0200)]
Continued:
- don't name your variables after packages, Python seem to be not strict on
  checking data types while referencing
- also scan misskey instances for new (no filter applied)

17 months agoContinued:
Roland Häder [Sun, 28 May 2023 07:58:12 +0000 (09:58 +0200)]
Continued:
- these aren't supposed to be real URLs, they COULD be reached actually
- these URLs are references, not crawlable URLs
- so some people overdoze the SSL here a little, as http:// is just enough
  for referencing to a specification

17 months agoContinued:
Roland Häder [Sat, 27 May 2023 13:29:54 +0000 (15:29 +0200)]
Continued:
- introduced fba.is_instance_registered()

17 months agoContinued:
Roland Häder [Sat, 27 May 2023 09:59:06 +0000 (11:59 +0200)]
Continued:
- also check for version numbers if no dot is in

17 months agoContinued:
Roland Häder [Sat, 27 May 2023 08:33:18 +0000 (10:33 +0200)]
Continued:
- including the configured base_url didn't make sense, let's better state
  clearly what you will get (recently blocked instances)

17 months agoContinued:
Roland Häder [Sat, 27 May 2023 08:07:00 +0000 (10:07 +0200)]
Continued:
- ops, I need to check again API response code
- also variable 'json' isn't here, need to take 'res.json()' directly

17 months agoContinued:
Roland Häder [Sat, 27 May 2023 07:44:48 +0000 (09:44 +0200)]
Continued:
- better only temporary split semicolon off, not from input variable

17 months agoContinued:
Roland Häder [Sat, 27 May 2023 07:35:08 +0000 (09:35 +0200)]
Continued:
- added regex for hexa-decimal "version numbers"
- removed some extras from (software) generator before checking it against a regex

17 months agoContinued:
Roland Häder [Fri, 26 May 2023 15:10:52 +0000 (17:10 +0200)]
Continued:
- one character more to remove which cuts of the separator, e.g. '/'
- also don't raise exceptions here, a returned unmodified software name is just fine

17 months agoContinued:
Roland Häder [Fri, 26 May 2023 14:02:39 +0000 (16:02 +0200)]
Continued:
- also expose these RSS URLs for auto-discovery

17 months agoContinued:
Roland Häder [Fri, 26 May 2023 04:41:53 +0000 (06:41 +0200)]
Continued:
- also strip out " by " and " see " (self-advertisement)
- same with " version"
- some version numbers had uncommon long patch levels, e.g. 8.0.0000

17 months agoContinued:
Roland Häder [Fri, 26 May 2023 04:31:49 +0000 (06:31 +0200)]
Continued:
- also try to remove 'powered by ' and other self-advertisement from software
  type

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 23:24:01 +0000 (01:24 +0200)]
Continued:
- old Friendica installations (I found one with 2019.03) may have version
  number in software's name info and in format YYYY.MM (and maybe later others)

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 23:09:27 +0000 (01:09 +0200)]
Continued:
- an INFO message is okay, let the user know that the <meta name='generator'>
  was found and taken as the software behind the instance/website

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 22:02:20 +0000 (00:02 +0200)]
Continued:
- DEBUG is okay here

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 21:34:57 +0000 (23:34 +0200)]
Continued:
- ops, need to include [domain] for nodeinfos array, too
- more flexible check if a domain has pending nodeinfos

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 20:55:58 +0000 (22:55 +0200)]
Continued:
- return modified software name when no common separator was found

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 20:52:56 +0000 (22:52 +0200)]
Continued:
- added 'GENERATOR' as "detection mode"
- explained NULL in 'detection_mode'

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 20:07:18 +0000 (22:07 +0200)]
Continued:
- try to strip off version numbers from software name
- remove_version() will output a warning and return 'software' unmodified if it
  fails to match version number against regex

17 months agoContinued:
Roland Häder [Thu, 25 May 2023 17:01:26 +0000 (19:01 +0200)]
Continued:
- encapsulated deleting of pending errors in remove_pending_error()
- introduced fetch_generator_from_path() and used it as last fall-back

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 16:23:05 +0000 (18:23 +0200)]
Continued:
- "guessing" it didn't really work, let's take <meta name='generator'> as the
  software type, some people even change that and have no /.well-known/ path
  enabled. Then they cannot federate anymore, at least not by auto-discovery

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 15:23:56 +0000 (17:23 +0200)]
Continued:
- after sorting by count, sort by software name

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 14:46:55 +0000 (16:46 +0200)]
Continued:
- output fetched rows so it is clear it might take some time to finish

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 13:11:47 +0000 (15:11 +0200)]
Continued:
- fixed debug message (ops)
- commented out noisy debug lines

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 12:43:32 +0000 (14:43 +0200)]
Continued:
- tidyup() used for header.text
- moved translations table to header
- renamed variable

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 12:20:20 +0000 (14:20 +0200)]
Continued:
- reformatted, I tried to use post_json_api() for bot postings

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 12:16:35 +0000 (14:16 +0200)]
Continued:
- 'mode' must be used also for these elements

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 10:34:43 +0000 (12:34 +0200)]
Continued:
- also including 'follower', not only 'following'

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 10:21:54 +0000 (12:21 +0200)]
Continued:
- PeerTube has discoverable instances lists, so let us browse them

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 06:40:12 +0000 (08:40 +0200)]
Continued:
- no shortening of packages

17 months agoContinued:
Roland Häder [Wed, 24 May 2023 05:23:50 +0000 (07:23 +0200)]
Continued:
- if fetching nodeinfo was successful, then clear any status codes and error
  messages for this instance
- also tidyup() found instance, some are invalid :-(

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 23:13:36 +0000 (01:13 +0200)]
Continued:
- ops, my mistake to remove array element while it is still needed

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 19:08:39 +0000 (21:08 +0200)]
Continued:
- use validators.domain() for checking if it is a valid domain (and host name)

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 18:02:26 +0000 (20:02 +0200)]
Continued:
- lemmy has an other API URL and also other JSON output for getting more peers
- Unfinished: Fetching blocks from Lemmy

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 11:56:05 +0000 (13:56 +0200)]
Continued:
- if the software being used isn't regonized, skip them

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 10:04:08 +0000 (12:04 +0200)]
Continued:
- also check if 'blocker' is meanwhile blocked (WIP)

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 09:57:41 +0000 (11:57 +0200)]
Continued:
- these are system-specific service files

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 08:48:59 +0000 (10:48 +0200)]
Continued:
- added more mastodon-typical fields

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 07:10:42 +0000 (09:10 +0200)]
Continued:
- added get_peers_url column
- flush any pending data after get_peers() was invoked
- blacklisted already added instances should be removed (WIP)

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 07:01:41 +0000 (09:01 +0200)]
Continued:
- flexible handling of SQL columns and values

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 06:18:51 +0000 (08:18 +0200)]
Continued:
- added detection_mode and nodeinfo_url to table 'instances'
- described arrays

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 04:43:17 +0000 (06:43 +0200)]
Continued:
- found a Japanese "limited server" phrase

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 04:08:42 +0000 (06:08 +0200)]
Continued:
- also 'meisskey' is an alias of misskey software

17 months agoContinued:
Roland Häder [Tue, 23 May 2023 04:05:26 +0000 (06:05 +0200)]
Continued:
- proper URLs with base_url
- all JSON replies now start with /api/

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 15:08:57 +0000 (17:08 +0200)]
Continued:
- reduce amount of rows to one (performance)

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 09:23:57 +0000 (11:23 +0200)]
Continued:
- log entire exception message
- show number of errorous instances

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 09:02:07 +0000 (11:02 +0200)]
Continued:
- try to update last error details and with a fake status_code

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 05:05:15 +0000 (07:05 +0200)]
Continued:
- proper place
- also log status_code

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 05:02:54 +0000 (07:02 +0200)]
Continued:
- older versions are okay, too!

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 04:59:42 +0000 (06:59 +0200)]
Continued:
- both isn't fully supported, only peer-disovery works

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 04:52:05 +0000 (06:52 +0200)]
Continued:
- Takahe added (partly WIP)

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 04:18:01 +0000 (06:18 +0200)]
Continued:
- strip out pipes from software names, too

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 04:02:53 +0000 (06:02 +0200)]
Continued:
- added other node rel

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 03:28:19 +0000 (05:28 +0200)]
Continued:
- also log these errors

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 02:58:41 +0000 (04:58 +0200)]
Continued:
- first try auto-discovery, then static list

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 02:52:13 +0000 (04:52 +0200)]
Continued:
- fetching .well-known/nodeinfo for auto-discovery added

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 02:13:27 +0000 (04:13 +0200)]
Continued:
- also include bookwyrm in instance discovering (blocks is WIP)

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 02:11:48 +0000 (04:11 +0200)]
Continued:
- added support for very old Mastodon instances, e.g. 2.x has no "software" in nodeinfo

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 01:35:28 +0000 (03:35 +0200)]
Continued:
- fixed bad handling of errors during nodeinfo discovery

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 01:00:24 +0000 (03:00 +0200)]
Continued:
- sorted nodeinfo API URLs by version
- added 1.0

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 00:42:07 +0000 (02:42 +0200)]
Continued:
- renamed variable
- used more tidyup()

17 months agoContinued:
Roland Häder [Mon, 22 May 2023 00:11:50 +0000 (02:11 +0200)]
Continued:
- try to strip of path if not aliased and known
- fixed some errors

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 23:57:02 +0000 (01:57 +0200)]
Continued:
- nicer look
- tidy up software, too

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 17:36:42 +0000 (19:36 +0200)]
Continued:
- no local variable needed

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 16:03:23 +0000 (18:03 +0200)]
Continued:
- keep connection and read timeout separate

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 15:18:38 +0000 (17:18 +0200)]
Continued:
- don't shorten variable names, wrong lazyness

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 14:59:12 +0000 (16:59 +0200)]
Continued:
- res.reason is just a text respresentation of the code

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 14:31:43 +0000 (16:31 +0200)]
Continued:
- also log last detailed error message
- introduced fba.is_blacklisted()

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 09:56:32 +0000 (11:56 +0200)]
Continued:
- make all software names lower-case
- also include initial instance

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 09:38:41 +0000 (11:38 +0200)]
Continued:
- added top X for used software

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 09:27:16 +0000 (11:27 +0200)]
Continued:
- rewrote a bit

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 07:51:48 +0000 (09:51 +0200)]
Continued:
- added top-referencing instances scoreboard

17 months agoContinued:
Roland Häder [Sun, 21 May 2023 07:36:08 +0000 (09:36 +0200)]
Continued:
- added first_seen and last_updated to instances table
- moved timestamp creation to functions (lesser parameter)