bugsfreeweb/LiveTVCollector — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python based GitHub repo that automatically collects publicly available live TV stream links from a bunch of M3U playlists and simple web pages, then sorts everything by country and channel category. I want it to run on its own in GitHub Actions about every 8 hours, remove duplicate stream URLs, check which links are still alive with concurrent requests, and only save the working ones.

For each country, save the results into a folder under LiveTV with four outputs, a normal M3U playlist, a readable TXT file, a structured JSON file with timestamp and grouped channels, and a simple custom JSON file for easy app use. If a source is an HTML page, parse out actual stream links and ignore junk links like social or repo links. Keep memory use reasonable for large playlists.

Also generate a simple index page so the collected files are easy to browse. Make it easy for me to add or edit source lists for each country later. Look up current docs online if you need to.

Want more depth? Deep Reverse