{"id":18546807,"url":"https://github.com/sreeharicodes/link-preview","last_synced_at":"2025-12-14T00:04:08.254Z","repository":{"id":57454743,"uuid":"408712692","full_name":"sreeharicodes/link-preview","owner":"sreeharicodes","description":"Get link preview of a website.","archived":false,"fork":false,"pushed_at":"2021-10-14T04:52:42.000Z","size":93,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T11:12:38.264Z","etag":null,"topics":["link","link-preview","preview","url"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sreeharicodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-21T06:34:53.000Z","updated_at":"2024-03-05T04:35:26.000Z","dependencies_parsed_at":"2022-09-05T05:41:16.851Z","dependency_job_id":null,"html_url":"https://github.com/sreeharicodes/link-preview","commit_stats":null,"previous_names":["sreeharicodes/link-preview","sreehari1997/link-preview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreeharicodes%2Flink-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreeharicodes%2Flink-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreeharicodes%2Flink-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sreeharicodes%2Flink-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sreeharicodes","download_url":"https://codeload.github.com/sreeharicodes/link-preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107248,"owners_count":21048885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["link","link-preview","preview","url"],"created_at":"2024-11-06T20:27:07.095Z","updated_at":"2025-12-14T00:04:08.192Z","avatar_url":"https://github.com/sreeharicodes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preview Link\n\n[![Build Status](\n    https://app.travis-ci.com/sreehari1997/link-preview.svg?branch=master\n)](\n    https://app.travis-ci.com/sreehari1997/link-preview\n)\n[![Coverage Status](\n    https://coveralls.io/repos/github/sreehari1997/link-preview/badge.svg?branch=HEAD\n)](\n    https://coveralls.io/github/sreehari1997/link-preview?branch=HEAD\n)\n[![Downloads](\n    https://pepy.tech/badge/previewlink\n)](\n    https://pepy.tech/project/previewlink\n)\n\nYou may have seen a preview of a link with a title, image, domain, and description when you share a link on social media.\n\n![alt text](https://github.com/sreehari1997/link-preview/blob/master/preview.png?raw=true)\n\nThis preview has a significant impact on the user's decision to click on or not click on that link.\npreviewlink will help you to get the preview of a link.\n\n[PyPI](https://pypi.org/project/previewlink/)\n\n## How it works?\n\npreviewlink looks for the following tags in the page source\n- [Open graph protocol](https://ogp.me/)\n- [Twitter cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started)\n- HTML tags (title, p, img, h1, h2)\n\n## Installation\n\nRun the following to install\n\n```python\npip install previewlink\n```\n## Usage\n\n```python\n\u003e\u003e\u003e from previewlink import preview_link\n\u003e\u003e\u003e # Generate link preview\n\u003e\u003e\u003e preview_link(\"https://github.com/sreehari1997\")\n{\n    'title': 'sreehari1997 - Overview',\n    'description': 'Developer. sreehari1997 has 69 repositories available. Follow their code on GitHub.',\n    'domain': 'github.com',\n    'image': 'https://avatars.githubusercontent.com/u/22663556?v=4?s=400'\n}\n```\n\n## Developing previewlink\n\nTo install previewlink, along with the tools you need to develop and run tests,\nrun the following in your virtual env\n\n```shell\n$ pip install -e .[dev]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsreeharicodes%2Flink-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsreeharicodes%2Flink-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsreeharicodes%2Flink-preview/lists"}