Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1 KB

README.md

File metadata and controls

50 lines (36 loc) · 1 KB

Web to Markdown Converter

A Python web application that converts web pages to clean markdown format using OpenAI's GPT-4 model.

Features

  • 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

Setup

  1. Create the conda environment:
conda env create -f environment.yml
  1. Activate the environment:
conda activate web-to-md
  1. Create a .env file with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here

Usage

Web Interface

  1. Start the web server:
python app.py
  1. Open your browser and navigate to http://localhost:8000
  2. Enter a URL and click "Convert to Markdown"
  3. The converted markdown file will be downloaded automatically

Command Line

You can also use the command-line interface:

python web_to_md.py https://example.com

The converted markdown will be saved in the output directory.