Mastodon.py icon indicating copy to clipboard operation
Mastodon.py copied to clipboard

[Question] Is there a way to export lists as CSV?

Open Guts opened this issue 1 year ago • 2 comments

Hi there,

I was wondering if there is a way to export lists into CSV using this API wrapper in the same way it's possible through the web client?

Guts avatar Feb 05 '24 09:02 Guts

Not entirely sure what you mean. Lists of followers / following / blocked etc.? There is no native, one-shot way to get a CSV download, but probably you could build something that exports the same data

halcy avatar Feb 11 '24 11:02 halcy

Yes, I'm reffering to the Import/export menu in Mastodon web application settings: https://docs.joinmastodon.org/user/moving/#export

image

By clicking on ":arrow_down: CSV", it allows to export following accounts, lists of accounts. Then it's can shared for example on something like https://trutzig89182.github.io/Mastodon-Sociologists/ (or just sending csv obvioulsy).

As you say, it's fairly simple to export lists of accounts using mastodon.py (my script in dev if someone is looking for the same thing).

But, there are some information is present in Mastodon UI's export but missing in account object through Mastodon.py:

  • Show boost
  • Languages
  • Notify on new posts

Guts avatar Feb 13 '24 22:02 Guts