Skip to content

mxcrml/urls-to-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URLs to Markdown

This is a lightweight yet powerful tool designed to convert a list of URLs into Markdown format and generate AI-powered summaries. Powered by macsplit/urltomarkdown and OpenAI's GPT-4o-mini, it simplifies the process of extracting and summarizing content from web pages, making it an ideal utility for SEO professionals, content writers, and web developers.


Preview

This tool allows you to input multiple URLs, process their content in batches, and view or download the extracted Markdown content. With an OpenAI API key, you can also generate concise summaries of the content.

urls-to-markdown-preview

Features

  • Batch Processing: Processes multiple URLs simultaneously, with built-in retry logic for failed requests.
  • AI-Powered Summaries: Generate concise summaries of your content using OpenAI's GPT-4 (requires API key).
  • Interactive UI: View Markdown content and summaries directly in the interface with copy and download options.
  • Retry on Failure: Automatically retries failed URL fetches up to 3 times with customizable delays.
  • Throttling: Prevents API overload by introducing a delay between batches.
  • Dark/Light Mode Toggle: Switch between light and dark themes for a more comfortable user experience.

Installation

Download or Clone the Repository

git clone https://github.com/mxcrml/urls-to-markdown.git

Navigate to the Project Directory

cd urls-to-markdown

Open the Tool in Your Browser

Simply open the index.html file in any modern browser to start using the tool.


Usage

  1. Enter URLs:

    • Paste a list of URLs into the text area, one URL per line.
  2. Optional: Add OpenAI API Key:

  3. Convert to Markdown:

    • Click the "Convert to Markdown" button to start the process.
    • View the extracted content directly in the interface.
    • Use the copy or download buttons to save the content.
  4. Generate Summary (Optional):

    • With a valid API key, click "Generate Summary" to create an AI-powered summary.
    • View, copy, or download the generated summary.
  5. Dark/Light Mode:

    • Use the toggle button (🌑/☀️) to switch between dark and light modes dynamically.

File Structure

  • index.html: The main HTML file for the user interface.
  • style.css: Handles the styling for both light and dark modes, as well as the overall layout.
  • script.js: Contains the core functionality, including batch processing, AI integration, and theme toggling.

Technologies Used

  • HTML5/CSS3: For the structure and styling of the tool.
  • JavaScript (ES6): For handling the API calls, retries, batching, and dynamic behavior.
  • macsplit/urltomarkdown: The API powering the Markdown conversion.
  • OpenAI API: Powers the AI summary generation feature.

License

This project is licensed under the CC-BY-4.0 License. See the LICENSE file for more details.


About

This tool was developed as a practical solution for extracting and summarizing content from web pages in bulk. It was created with inspiration from other tools built by Astralrank.


Contact

For questions, feedback, or support, please contact [email protected].