Skip to main content

Get the preview of a website

Project description

Preview Link

You may have seen a preview of a link with a title, image, domain, and description when you share a link on social media. This preview has a significant impact on the user's decision to click on or not click on that link.

previewlink will help you to get the preview of a link.

How it works?

previewlink looks for the following tags in the page source


Run the following to install

pip install previewlink


>>> from previewlink import preview_link
>>> # Generate link preview
>>> preview_link("")
    'title': 'sreehari1997 - Overview',
    'description': 'Developer. sreehari1997 has 69 repositories available. Follow their code on GitHub.',
    'domain': '',
    'image': ''

Developing previewlink

To install previewlink, along with the tools you need to develop and run tests, run the following in your virtual env

$ pip install -e .[dev]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

previewlink-0.0.1.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distribution

previewlink-0.0.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page