Live-convert any RSS/XML feed into JSON using Docker.
- Fetches an XML feed (e.g. RSS)
- Converts it live to JSON
- Serves it via
/feed.json
- A system with Docker installed
Follow the official guide:
- 👉 https://docs.docker.com/get-docker/
- 👉 Install on Ubuntu Server (recommended, stable) https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
git clone https://github.com/ComputerEndProgram/xml-json-proxy.gitcd xml-json-proxysudo nano index.js-
Go to line 7:
const XML_URL = "https://example.com/feed.xml";
-
Change the URL to your own XML/RSS feed
-
Then press:
Ctrl + X, typeY, thenEnterto save
sudo docker build -t xml-json-proxy .sudo docker run -d --restart unless-stopped -p 5000:5000 xml-json-proxycurl http://<your-server-ip>:5000/feed.jsonOr open it in a browser:
http://<your-server-ip>:5000/feed.json
-
To stop the container:
sudo docker ps # get the container ID sudo docker stop <container-id>
-
To update the feed URL again, repeat step 3 and then re-run steps 4 and 5.
MIT License