Skip to content

ComputerEndProgram/xml-json-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML to JSON Live Proxy

Live-convert any RSS/XML feed into JSON using Docker.


✅ What it does

  • Fetches an XML feed (e.g. RSS)
  • Converts it live to JSON
  • Serves it via /feed.json

🧰 Requirements


🚀 Setup Guide

0. Install Docker (if not already installed)

Follow the official guide:


1. Clone this repo

git clone https://github.com/ComputerEndProgram/xml-json-proxy.git

2. Enter the folder

cd xml-json-proxy

3. Edit the XML feed URL

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, type Y, then Enter to save


4. Build the Docker image

sudo docker build -t xml-json-proxy .

5. Run it in detached mode (auto-restarts on reboot)

sudo docker run -d --restart unless-stopped -p 5000:5000 xml-json-proxy

6. Access your live JSON feed

curl http://<your-server-ip>:5000/feed.json

Or open it in a browser:
http://<your-server-ip>:5000/feed.json


7. ✅ Enjoy your auto-converted JSON feed!


🛠 Notes

  • 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.


📄 License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published