Skip to content

misea/followers_to_csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

followers_to_csv

This repository contains a script to export a public Mastodon account's followers to a csv file similar to those used in many of the Academics of Mastodon lists, which are also compatible with find.sciences.social.

The generated file contains 3 columns:

  • Account address: The full Mastodon handle of the follower. Name is different from Academics of Mastodon but same as what Mastodon importer uses.
  • name: taken from the Display Name of the following account
  • keywords: These are the hashtags extracted from the account description

A future version include validated urls information from custom fields.

Setup

To run you will need a node.js installation that supports ECMAScript modules (version > 14). I have not tested on anything before 18.2 LTS.

Then download or clone this repository. Before you run the first time you will have to run

npm i

from the command line in the root directory in order to install libraries.

Usage

From the command line in the root directory run

node followers_csv.js @user@instance csvfile_path.csv

For example

node followers_csv.js @[email protected] marks_followers.csv

The script will fail if the account is not public or if the instance blocks public requests for user account information or followers. That's a feature

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published