This package creates a link preview of a URL. This largely relies on the Open Graph protocol proposed by Facebook.
Installation
$ pip install link-previewer
Usage
>>> from previewer import get_preview
>>> url = "https://youtube.com"
>>> preview_info = get_preview(url)
>>> get_preview(url)
final url is: https://youtube.com
{'title': 'YouTube', 'description': 'Enjoy the videos and music that you love, upload original content and share it all with friends, family and the world on YouTube.', 'url': 'www.youtube.com', 'img_url': 'https://www.youtube.com/img/desktop/yt_1200.png'}
Developing link-previewer
To install link-previewer, along with the tools you need to develop and run tests, run the following in your virtualenv:
$ pip install -e .[dev]
Metadata
Release files for link-previewer 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| link_previewer-0.0.6.tar.gz | 4.4 kB | Without provenance | Details for link_previewer-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| link_previewer-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for link_previewer-0.0.6-py3-none-any.whl |
Total release size: 8.9 kB
Release files / link_previewer-0.0.6.tar.gz
| Download URL | link_previewer-0.0.6.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
767a8ab194991ff4d37663894c87f1640df0c70943ea39b9232aaf1d4fc6717e
|
|
BLAKE2b-256 checksum How to use checksums |
1a3f465c23b151a00afa7dec41b2bd80debb918c15e6a5af383c69bdf9807091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.6
|
Release files / link_previewer-0.0.6-py3-none-any.whl
| Download URL | link_previewer-0.0.6-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37eb72165eed01c571dae785e5e3c89834bd8adc03c44626b6378aa319215be1
|
|
BLAKE2b-256 checksum How to use checksums |
341486907fc0017298141b23be04cfb9e3638df7fdf750cf9dc8733f1b1ae096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.6
|
Security for link-previewer 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.