A simple tool to generate HTML embed code for URL previews. Ideal for platforms like Squarespace that don’t reliably auto-generate URL previews.
- Extracts Open Graph metadata from URLs to create HTML embed code.
- Displays a preview similar to social media previews with title, description, and image.
- Offers both a standalone executable for easy use and the Python source code for customization.
- Download the executable from the
dist/
folder: Link Preview Generator.exe. - Run
Link Preview Generator.exe
. - Enter a URL and generate the HTML code, ready for embedding.
- Clone the repository:
git clone https://github.com/yourusername/Link-Preview-Generator.git
- Install dependencies:
pip install -r requirements.txt
- Run the script:
python src/link_preview_generator.py
Here’s how the Link Preview Generator looks in action:
How the GUI appears after pasting in a URL
The result after pasting the generated code on a website
Contributions are welcome! Submit pull requests or open issues to improve the tool.
This project is licensed under the MIT License - see the LICENSE file for details.