forked from extern/GetMoarFediverse
46 lines
1.5 KiB
Markdown
46 lines
1.5 KiB
Markdown
# GetMoarFediverse
|
|
|
|
This is a small app that shows how you could use [FakeRelay](https://github.com/g3rv4/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](https://github.com/g3rv4/GetMoarFediverse/releases). 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"
|
|
],
|
|
"Sites": [
|
|
{
|
|
"Host": "hachyderm.io",
|
|
"SiteSpecificTags": [
|
|
"hachyderm"
|
|
]
|
|
},
|
|
{
|
|
"Host": "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](docs/docker.md) with instructions.
|