https://github.com/tonytw1/rsstotwitter
RSS to Twitter and Mastodon. Drives the @wellynews Twitter feed among others. Attributes links to the RSS author field. Provides rate limiting, duplicate post protection and georss support.
https://github.com/tonytw1/rsstotwitter
mastodon rss twitter
Last synced: 11 months ago
JSON representation
RSS to Twitter and Mastodon. Drives the @wellynews Twitter feed among others. Attributes links to the RSS author field. Provides rate limiting, duplicate post protection and georss support.
- Host: GitHub
- URL: https://github.com/tonytw1/rsstotwitter
- Owner: tonytw1
- Created: 2009-11-22T21:52:54.000Z (over 16 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T08:32:33.000Z (almost 3 years ago)
- Last Synced: 2025-07-09T20:50:21.192Z (12 months ago)
- Topics: mastodon, rss, twitter
- Language: Java
- Homepage:
- Size: 11.1 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RSS to Twitter (and Mastodon)
Pushes RSS feed items to linked Twitter accounts.
- Supports multiple input feeds and Twitter accounts.
- Supports rate limiting and duplicate post protection.
Uses MongoDB for storage.
Java / Spring Boot / Maven application intended to be run in a Docker container.
Example output: [@wellynews](https://twitter.com/wellynews)
### Sign in

### Adding a new feed

### Listing feeds

### Feed details

## Run locally
Use Docker to provide a local MongoDB instance:
```
docker compose -f docker/docker-compose.yml up
```
Inspect the `application.properties` file.
Set the Mongo connection details and your Mastodon and Twitter client credentials.
In the Twitter developer tools, set http://localhost:8080/oauth/callback as an allowed oauth callback url.
Use Spring Boot to start the application locally:
```
mvn spring-boot:run
```
The sign in screen will be visible at http://localhost:8080
## Dependencies
OkHttp for RSS feed fetching.
[Mastodon4j](https://github.com/sys1yagi/mastodon4j) for Mastodon API access.
## Build
Run Maven build then Docker build.
```
mvn clean test install
docker build -t rsstotwitter:latest .
```