A Python web application that converts web pages to clean markdown format using OpenAI's GPT-4 model.
- Clean, modern web interface
- Converts any webpage to markdown format
- Uses GPT-4 to enhance and clean up the markdown
- Automatic file download
- Progress indication and error handling
- Create the conda environment:
conda env create -f environment.yml- Activate the environment:
conda activate web-to-md- Create a
.envfile with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here- Start the web server:
python app.py- Open your browser and navigate to
http://localhost:8000 - Enter a URL and click "Convert to Markdown"
- The converted markdown file will be downloaded automatically
You can also use the command-line interface:
python web_to_md.py https://example.comThe converted markdown will be saved in the output directory.