Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myles/mastodon-to-sqlite
Save data from Mastodon to a SQLite database
https://github.com/myles/mastodon-to-sqlite
datasette dogsheep mastodon
Last synced: about 1 month ago
JSON representation
Save data from Mastodon to a SQLite database
- Host: GitHub
- URL: https://github.com/myles/mastodon-to-sqlite
- Owner: myles
- License: apache-2.0
- Created: 2022-12-22T20:12:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T04:39:07.000Z (7 months ago)
- Last Synced: 2024-04-14T22:14:20.873Z (7 months ago)
- Topics: datasette, dogsheep, mastodon
- Language: Python
- Homepage:
- Size: 134 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mastodon-to-sqlite
Save data from Mastodon to a SQLite database.
## Install
```console
foo@bar:~$ pip install mastodon-to-sqlite
```## Authentication
First you will need to create an application on your Mastodon server. You
can find that on your Mastodon serer.```console
foo@bar:~$ mastodon-to-sqlite auth
Mastodon domain: mastodon.socialCreate a new application here: https://mastodon.social/settings/applications/new
Then navigate to newly created application and paste in the following:Your access token: xxx
```
This will write an `auth.json` file to your current directory containing your
access token and Mastodon domain. Use `-a other-file.json` to save those
credentials to a different location.That `-a` option is supported by all other commands.
You can verify your authentication by running `mastodon-to-sqlite
verify-auth`.## Retrieving Mastodon followers
The `followers` command will retrieve all the details about your Mastodon
followers.```console
foo@bar:~$ mastodon-to-sqlite followers mastodon.db
```## Retrieving Mastodon followings
The `followings` command will retrieve all the details about your Mastodon
followings.```console
foo@bar:~$ mastodon-to-sqlite followings mastodon.db
```## Retrieving Mastodon statuses
The `statuses` command will retrieve all the details about your Mastodon
statuses.```console
foo@bar:~$ mastodon-to-sqlite statuses mastodon.db
```## Retrieving Mastodon bookmarks
The `bookmarks` command will retrieve all the details about your Mastodon
bookmarks.```console
foo@bar:~$ mastodon-to-sqlite bookmarks mastodon.db
```## Retrieving Mastodon favourites
The `favourites` command will retrieve all the details about your Mastodon
favourites.```console
foo@bar:~$ mastodon-to-sqlite favourites mastodon.db
```