{"id":22769715,"url":"https://github.com/bfontaine/summarify","last_synced_at":"2025-04-15T03:15:40.139Z","repository":{"id":54869528,"uuid":"117458749","full_name":"bfontaine/Summarify","owner":"bfontaine","description":"Python library to get a title \u0026 description for a URL","archived":false,"fork":false,"pushed_at":"2023-08-16T18:23:17.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:15:36.452Z","etag":null,"topics":["library","python3"],"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/bfontaine.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-01-14T19:10:50.000Z","updated_at":"2023-08-16T18:15:27.000Z","dependencies_parsed_at":"2022-08-14T05:10:59.787Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/Summarify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FSummarify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FSummarify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FSummarify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FSummarify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/Summarify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997084,"owners_count":21195799,"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":["library","python3"],"created_at":"2024-12-11T15:14:14.603Z","updated_at":"2025-04-15T03:15:40.124Z","avatar_url":"https://github.com/bfontaine.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summarify\n\n**Summarify** is a small Python library to extract a title and description from a Web page.\n\n```python\nimport summarify\n\nsummary = summarify.from_url(\"https://github.com/\")\n\nprint(summary.title)\nprint(summary.description)\nprint(summary.picture)\n```\nOutput:\n```text\nThe world's leading software development platform · GitHub\nGitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 75 million projects.\nhttps://assets-cdn.github.com/images/modules/open_graph/github-octocat.png\n```\n\n## Install\n\n    pip3 install summarify\n\n## Usage\n\n```python\nimport summarify\n\nsummary = summarify.from_url(\"https://...\")\n\n# If you already have the HTML:\n# summary = summarify.from_html(\"...\")\n```\n\nThe `Summary` object returned from `summarify.from_url` has the following\nattributes:\n\n* `title` (`str` or `None`)\n* `description` (`str` or `None`)\n* `url` (`str` or `None`): The URL you passed as an argument. If you used\n  `summary.from_markup`, it’ll try to guess it from the markup.\n* `picture` (`str` or `None`): Picture URL\n* `author` (`str` or `None`)\n* `publisher` (`str` or `None`)\n* `excerpt`: Always `None` for now\n\nYou can also export a summary as a `dict` for e.g. JSON serialization:\n\n```python\ndict(my_summary)  # -\u003e {\"url\": \"...\", \"title\": \"...\"}\n```\n\nBe aware that only the non-`None` attributes are included in that dictionnary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fsummarify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fsummarify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fsummarify/lists"}