{"id":18080861,"url":"https://github.com/pdehaan/summarizer","last_synced_at":"2025-04-12T14:33:10.553Z","repository":{"id":20005357,"uuid":"23272851","full_name":"pdehaan/summarizer","owner":"pdehaan","description":"Scrapes a remote page and creates a summary with statistics","archived":false,"fork":false,"pushed_at":"2014-08-24T05:00:54.000Z","size":156,"stargazers_count":38,"open_issues_count":1,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-26T09:05:40.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/pdehaan/summarizer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdehaan.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":"2014-08-24T04:10:26.000Z","updated_at":"2024-08-14T16:44:45.000Z","dependencies_parsed_at":"2022-08-21T01:50:07.322Z","dependency_job_id":null,"html_url":"https://github.com/pdehaan/summarizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdehaan%2Fsummarizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdehaan%2Fsummarizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdehaan%2Fsummarizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdehaan%2Fsummarizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdehaan","download_url":"https://codeload.github.com/pdehaan/summarizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581357,"owners_count":21128155,"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":[],"created_at":"2024-10-31T13:10:56.745Z","updated_at":"2025-04-12T14:33:10.523Z","avatar_url":"https://github.com/pdehaan.png","language":"JavaScript","readme":"# summarizer\n\n[![Build Status: Travis](https://travis-ci.org/pdehaan/summarizer.svg?branch=master)](https://travis-ci.org/pdehaan/summarizer)\n\nScrapes a remote page and creates a summary with statistics.\n\nThis package uses a combination of the following modules:\n\n- [summarize](https://www.npmjs.org/package/summarize) \u0026mdash; Summarize html content.\n- [node-summary](https://www.npmjs.org/package/node-summary) \u0026mdash; Summarizes text using a naive summarization algorithm.\n- [unfluff](https://www.npmjs.org/package/unfluff) \u0026mdash; A web page content extractor.\n\n## Installation\n\n```sh\n$ npm i summarizer\n```\n\n### [Example usage](/example.js)\n\n```js\n'use strict';\n\nvar getPage = require('summarizer').getPage;\n\nvar uri = 'http://nodejs.org/api/documentation.html';\n\ngetPage(uri).then(function (data) {\n  console.log(JSON.stringify(data, null, 2));\n}, console.error);\n```\n\n#### [Example output](/example.json)\n\n```json\n{\n  \"title\": \"About this Documentation Node.js v0.10.31 Manual \u0026 Documentation\",\n  \"lang\": \"en\",\n  \"canonicalLink\": \"http://nodejs.org/api/documentation.html\",\n  \"tags\": [],\n  \"image\": null,\n  \"videos\": [],\n  \"text\": \"The goal of this documentation is to comprehensively explain the Node.js API, both from a reference as well as a conceptual point of view.  ...\",\n  \"raw\": \"\u003c!doctype html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n...\",\n  \"stats\": {\n    \"ok\": true,\n    \"sentiment\": 0.018134715025906734,\n    \"title\": \"About this Documentation Node.js v0.10.31 Manual \u0026 Documentation\",\n    \"topics\": [\n      \"Stability\",\n      \"change\",\n      \"...\"\n    ],\n    \"words\": 414,\n    \"difficulty\": 0.6416666666666667,\n    \"minutes\": 4,\n    \"image\": null\n  },\n  \"summary\": \"About this Documentation Node.js v0.10.31 Manual \u0026 Documentation...\"\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdehaan%2Fsummarizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdehaan%2Fsummarizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdehaan%2Fsummarizer/lists"}