{"id":37088455,"url":"https://github.com/ktodorov/go-summarizer","last_synced_at":"2026-01-14T10:52:05.308Z","repository":{"id":57603137,"uuid":"77934865","full_name":"ktodorov/go-summarizer","owner":"ktodorov","description":"Summarize text and websites and optionally saves the data to a local file","archived":false,"fork":false,"pushed_at":"2017-02-19T11:24:49.000Z","size":153,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T12:39:53.580Z","etag":null,"topics":["html-parsing","parser","readability","summarizer"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ktodorov.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":"2017-01-03T16:40:33.000Z","updated_at":"2024-02-26T07:15:43.000Z","dependencies_parsed_at":"2022-09-26T22:30:16.698Z","dependency_job_id":null,"html_url":"https://github.com/ktodorov/go-summarizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ktodorov/go-summarizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktodorov%2Fgo-summarizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktodorov%2Fgo-summarizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktodorov%2Fgo-summarizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktodorov%2Fgo-summarizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktodorov","download_url":"https://codeload.github.com/ktodorov/go-summarizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktodorov%2Fgo-summarizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["html-parsing","parser","readability","summarizer"],"created_at":"2026-01-14T10:52:04.832Z","updated_at":"2026-01-14T10:52:05.295Z","avatar_url":"https://github.com/ktodorov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-summarizer\nThis is a Go library for summarizing text and websites and optionally saving the data to a local file\n\n[![License MIT](https://img.shields.io/npm/l/express.svg)](http://opensource.org/licenses/MIT)\n\n## Installing\n    go get github.com/ktodorov/go-summarizer\n\n## Creating Summarizer instance\n\n### From text\n    var unsummarizedText = \"unsummarized text\"\n\tvar s = CreateFromText(unsummarizedText)\n\n### From website url\n    var urlToSummarize = \"http://testurl.test/\"\n\tvar s = CreateFromURL(urlToSummarize)\n\n## Supported methods\n### Summarize\n    var customNewsStoryURL = `https://techcrunch.com/2017/01/14/spacex-successfully-returns-to-launch-with-iridium-1-next-falcon-9-mission/`\n\t\n    var s = CreateFromURL(customNewsStoryURL)\n\tsummary, err := s.Summarize()\n\tif err != nil {\n\t\tfmt.Println(\"Error occurred: \", err.Error())\n        return\n\t}\n\n\tfmt.Println(summary)\n\nOutput*:\n\u003eSpaceX successfully returns to launch with Iridium-1 NEXT Falcon 9 mission\n\u003e\n\u003eIt’s a huge victory for SpaceX, which has had to delay its launch schedule since the explosion.\n\u003eThe launch also resulted in a successful recovery of the Falcon 9 rocket’s first stage, which marks the seventh time SpaceX has succeed in landing this stage back for potential later re-use\n\u003eIt’s also a green light for SpaceX in terms of the company pursuing its aggressive launch schedule, which is something the private launch provider needs to do in order to continue locking in new contracts and working towards its goal of decreasing the cost of launches even further still.\n\u003eIn 2016, SpaceX completed only 8 of a planned 20 launches, due to the September 1 explosion that halted all new launches for four months\n\u003eSpaceX also had to push back its timelines for test launches of its Dragon crew capsule as a result of the September incident\n\u003eIt also sets the stage for SpaceX’s future goals of providing missions to Mars, with a target initial date for those aspirations still set for 2024.\n\u003eAll satellites were successfully deployed as of 11:13 AM PT / 2:12 PM PT, signalling a successful mission for the space company’s first flight back.\n\n_*Note that it first prints the title of the web page if there is such_\n\n### GetSummaryInfo\n    var s = CreateFromText(\"first sentence. second sentence\")\n\ts.Summarize()\n\tsummaryInfo, err := s.GetSummaryInfo()\n\tif err != nil {\n\t\tfmt.Println(\"Error occurred: \", err.Error())\n\t}\n\n\tfmt.Println(summaryInfo)\n\nOutput:\n\u003eSummary info: \u003cbr/\u003e\n\u003e \\- Original length: 31 symbols \u003cbr/\u003e\n\u003e \\- Summary length:  14 symbols \u003cbr/\u003e\n\u003e \\- Summary ratio:   54.84% \u003cbr/\u003e\n\n### IsSummarized\n    var s = CreateFromText(\"first sentence. second sentence\")\n\tfmt.Println(\"Before summarizing: \", s.IsSummarized())\n\ts.Summarize()\n\tfmt.Println(\"After summarizing: \", s.IsSummarized())\n\nOutput:\n\u003e Before summarizing: false\u003cbr/\u003e\n\u003e After summarizing: true\u003cbr/\u003e\n\n### StoreToFile\n    var s = CreateFromText(\"first sentence. second sentence\")\n\ts.Summarize()\n\tstored, err := s.StoreToFile(\"some/path/to/file.txt\")\n\tif err != nil {\n\t\tfmt.Println(\"Error occurred: \", err.Error())\n\t}\n\n\tfmt.Println(stored)\n\nOutput:\n\u003e true\n\n_*Currently supported file types: txt and pdf_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktodorov%2Fgo-summarizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktodorov%2Fgo-summarizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktodorov%2Fgo-summarizer/lists"}