{"id":19311585,"url":"https://github.com/rednafi/html-to-text","last_synced_at":"2025-02-24T03:41:58.805Z","repository":{"id":183047934,"uuid":"669523701","full_name":"rednafi/html-to-text","owner":"rednafi","description":"Extract pure text from any webpage","archived":false,"fork":false,"pushed_at":"2024-04-08T04:08:09.000Z","size":278,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-08T05:23:33.280Z","etag":null,"topics":["asgi","flyio","html","llm","python","text"],"latest_commit_sha":null,"homepage":"https://html-text.rednafi.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rednafi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-22T14:58:21.000Z","updated_at":"2024-04-15T05:56:40.479Z","dependencies_parsed_at":"2023-09-25T06:46:21.243Z","dependency_job_id":"fa00c580-0101-4e3b-a6e6-1868dac9427e","html_url":"https://github.com/rednafi/html-to-text","commit_stats":null,"previous_names":["rednafi/html-to-text"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednafi%2Fhtml-to-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednafi%2Fhtml-to-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednafi%2Fhtml-to-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rednafi%2Fhtml-to-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rednafi","download_url":"https://codeload.github.com/rednafi/html-to-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415216,"owners_count":19797599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asgi","flyio","html","llm","python","text"],"created_at":"2024-11-10T00:29:27.590Z","updated_at":"2025-02-24T03:41:58.780Z","avatar_url":"https://github.com/rednafi.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003eHTML to TEXT\u003c/h1\u003e\n\u003cstrong\u003e\u003e\u003e \u003ci\u003eExtract pure text from any webpage\u003c/i\u003e \u003c\u003c\u003c/strong\u003e\n\n\u0026nbsp;\n\n\u003c/div\u003e\n\n## Why\n\nLLMs with huge context windows like [Claude 2] enable the idea of pasting large blobs of\ntexts and asking questions about them. Often, I want to copy the entire content of a\nwebpage and pipe it into a chat window. One specific use case is when I want to grok\nPython PEPs with the help of an LLM. This little [ASGI] tool allows you to parse the HTML\ncontent of any publicly available page and turn it into pure text that's ingestible by a\nlanguage model.\n\n## Exploration\n\n* Go to [html-text.rednafi.com] and paste a publicly accessible page URL. Then click\n**Submit** and you'll see that the parsed text content will appear in the adjacent text\nbox:\n\n    ![screenshot-a]\n\n* Copy the text content by clicking on the **Copy** button.\n\n* Click **Clear** if you need a blank canvas.\n\n## Development\n\n* Ensure that docker is installed on your system.\n* Clone the repo and head over to the root directory.\n* Build and run the service locally:\n\n    ```sh\n    docker build -t html-to-text . \\\n        \u0026\u0026 docker run -p \"5001:5000\" html-to-text\n    ```\n* Head over to [http://localhost:5001] on your browser and explore the app.\n\n* Apply linter:\n\n    ```sh\n    make lint\n    ```\n\n* Run the tests\n\n    ```sh\n    make test\n    ```\n\n## Deployment\n\nThe app is built with Python 3.12 and is automagically deployed to [fly.io] via GitHub\nAction.\n\n\n\u003cdiv align=\"center\"\u003e\n\u003ci\u003e ✨ 🍰 ✨ \u003c/i\u003e\n\u003c/div\u003e\n\n[screenshot-a]: https://github.com/rednafi/html-to-text/assets/30027932/20bb63bd-c4a8-48bf-8cda-d83857548b48\n[http://localhost:5001]: http://localhost:5001\n[html-text.rednafi.com]: https://html-text.rednafi.com\n[fly.io]: https://fly.io\n[claude 2]: https://www.anthropic.com/index/claude-2\n[asgi]: https://asgi.readthedocs.io/en/latest/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frednafi%2Fhtml-to-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frednafi%2Fhtml-to-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frednafi%2Fhtml-to-text/lists"}