You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.0 KiB
Markdown
25 lines
1.0 KiB
Markdown
1 year ago
|
# Replicator
|
||
|
Replicator can manage several Mastodon's bot accounts who will replicate (post to Mastodon) several Twitter accounts's tweets of your choice.
|
||
|
|
||
|
### Dependencies
|
||
|
|
||
|
- **Python 3**
|
||
|
- Postgresql server
|
||
|
- Several Mastodon's bot accounts
|
||
|
- One Twitter user account API KEY and SECRET
|
||
|
- Your personal Linux or Raspberry box.
|
||
|
|
||
|
### Usage:
|
||
|
|
||
|
Within Python Virtual Environment:
|
||
|
|
||
|
1. Run `pip install -r requirements.txt` to install needed libraries.
|
||
|
|
||
|
2. Run `python db-setup.py` to setup and create new Postgresql database and needed table in it.
|
||
|
|
||
|
3. Run `python twitter-setup.py` to input and save your Twitter's key and access token. You can get your API key and API key secret from [Twitter Developer Platform](https://developer.twitter.com/en/apply/user.html)
|
||
|
|
||
|
4. Run `python bots-setup.py` to setup your Mastodon's bot accounts access tokens, so many as you wish. Each bot will replicate (post to Mastodon) all new tweets from each configured Twitter's users.
|
||
|
|
||
|
5. Use your favourite scheduling method to set `python replicator.py` to run every minute.
|