Devadex

LegacyWebToAPIProxy

gumroad   $25.99   by yoshikobo
7d old

LegacyWebToAPIProxy Headline Your legacy system has no API. Now it does. Introduction You have an old web system that holds critical data, but no API to get it out. Rebuilding it from scratch is too risky. Modifying the source is off-limits. This tool acts as a proxy between your system and the modern world — it fetches the legacy page, extracts exactly the data you need, and returns it as clean JSON. No changes to the original system. No scraping boilerplate to write. What It Does Session-Aware Proxy Uses requests.Session() to maintain cookies and session state across requests. Works with legacy systems that require login or multi-step navigation. HTML → JSON Parsing Layer Powered by BeautifulSoup4. Define CSS selectors in config.json and the tool automatically extracts the right data from any HTML structure — tables, IDs, class names. Proper Error Handling Timeout protection (configurable via TIMEOUT env var). Upstream errors return 502, timeouts return 504. No silent failures. Every request is logged with timestamp, status, and result. FastAPI Server Runs as a local REST API on http://localhost:8000/api/data. Point any system at it and get structured JSON back immediately. Requirements Python 3.8 or higher pip install fastapi requests beautifulsoup4 uvicorn httpx No external tools or services required Environment Variables Variable Required Default Description TARGET_URL Optional https://example.com/api/data Legacy system URL to proxy TIMEOUT Optional 30 Request timeout in seconds CONFIG_FILE Optional config.json Path to config file How to Use Edit config.json — set your legacy system URL and CSS selectors for the data you need Run: python product.py (starts the proxy server on port 8000) Call GET http://localhost:8000/api/data from your application — receive clean JSON Files Included product.py — proxy server (FastAPI) config.json — configuration (edit before running) README.md — setup guide (JP/EN) run.sh — one-click launcher (Mac/Linux) run.bat — one-click launcher (Windows) License For personal and business use by the purchaser only. Redistribution, resale, and unauthorized sharing are prohibited. Copyright © henkikobo

Get it → yoshikobo.gumroad.com

Found on Devadex — the discovery index for independent software the big search engines bury. More from gumroad.

Report this listing