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.git
cd xml-json-proxy
sudo 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
, thenEnter
to save
sudo docker build -t xml-json-proxy .
sudo docker run -d --restart unless-stopped -p 5000:5000 xml-json-proxy
curl http://<your-server-ip>:5000/feed.json
Or 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