An application that index content with #hashtags on Mastodon using FakeRelay
Go to file
2022-12-20 17:03:06 -03:00
.github/workflows Add more executable runtimes 2022-12-16 02:07:33 -03:00
docs Update README (#5) 2022-12-16 11:57:30 -03:00
src Deprecate Sites in favor of Instances (#7) 2022-12-20 17:03:06 -03:00
.gitignore Make it trimmable 2022-12-16 01:54:49 -03:00
Dockerfile Rename! 2022-12-05 08:38:07 -03:00
README.md Deprecate Sites in favor of Instances (#7) 2022-12-20 17:03:06 -03:00

GetMoarFediverse

This is a small app that shows how you could use FakeRelay to import content into your instance that's tagged with hashtags you're interested in.

This doesn't paginate over the tags, that means it will import up to 20 statuses per instance. This also keeps a txt file with all the statuses it has imported.

How can I run it?

Download a prebuilt executable

You can download an executable for your environment on the releases page. In addition to that, you will need to set up a config.json file with your desired logic. It could be something like this:

{
    "FakeRelayUrl": "https://fakerelay.gervas.io",
    "FakeRelayApiKey": "1TxL6m1Esx6tnv4EPxscvAmdQN7qSn0nKeyoM7LD8b9mz+GNfrKaHiWgiT3QcNMUA+dWLyWD8qyl1MuKJ+4uHA==",
    "Tags": [
        "dotnet",
        "csharp"
    ],
    "Instances": [ "hachyderm.io", "mastodon.social" ]
}

Once you have that file, all you need to run is ./GetMoarFediverse /path/to/config.json. You can put it on a cron like this :)

1,16,31,46 * * * * /path/to/GetMoarFediverse /path/to/config.json > /path/to/GetMoarFediverse/cron.log 2>&1

You will find an executable for Windows as well, which you can use on a scheduled task.

You can run it on docker

If that's what you like, you can check out this document with instructions.