The script detects the favorite language of your most active followers on Mastodon and Bluesky. A follower is considered as "active" if he/she posted on average 1 post/month in the last 6 months.
Configure your script by setting the variables:
MASTODON_ACCESS_TOKENandMASTODON_API_BASE_URL(if you want to analyze your Mastodon followers)BLUESKY_USERNAMEandBLUESKY_PASSWORD(if you want to analyze your Bluesky followers)
You can obtain a Mastodon access token via Preferences > Development > New application
The script requires the library langdetect to detect the language of each post. Libraries mastodon and atproto are required to retrieve posts from Mastodon and Bluesky, respectively.
python analyzer.py mastodon
python analyzer.py bluesky
python analyzer.py both