{"id":34187564,"url":"https://github.com/ammit/go-metaparser","last_synced_at":"2026-03-10T09:40:26.304Z","repository":{"id":57530321,"uuid":"256327777","full_name":"ammit/go-metaparser","owner":"ammit","description":"Simple and elegant Metadata Parser in Go 🔥💬","archived":false,"fork":false,"pushed_at":"2020-06-20T06:22:48.000Z","size":70,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-18T14:42:53.213Z","etag":null,"topics":["go","golang","metadata","metadata-extraction","opengraph","parser","scraper","twitter-cards","web-scraper"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ammit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-16T20:55:25.000Z","updated_at":"2025-03-20T19:28:40.000Z","dependencies_parsed_at":"2022-09-10T11:01:40.179Z","dependency_job_id":null,"html_url":"https://github.com/ammit/go-metaparser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ammit/go-metaparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammit%2Fgo-metaparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammit%2Fgo-metaparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammit%2Fgo-metaparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammit%2Fgo-metaparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammit","download_url":"https://codeload.github.com/ammit/go-metaparser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammit%2Fgo-metaparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["go","golang","metadata","metadata-extraction","opengraph","parser","scraper","twitter-cards","web-scraper"],"created_at":"2025-12-15T15:16:18.197Z","updated_at":"2026-03-10T09:40:26.277Z","avatar_url":"https://github.com/ammit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/ammit/go-metaparser.svg?branch=master)](https://travis-ci.com/ammit/go-metaparser) [![Go Report Card](https://goreportcard.com/badge/github.com/ammit/go-metaparser)](https://goreportcard.com/report/github.com/ammit/go-metaparser)\n\n# go-metaparser\n\n\u003e Lightweight metadata parser written in Go\n\n![](https://repository-images.githubusercontent.com/256327777/b9713100-8055-11ea-8d30-ca9ecc6e881b)\n\nWith go-metaparser, you can easily extract structured meta-data from HTML. The purpose of this library is to be able to obtain all types of metadata from the web page.\n\nCurrently, it supports Open Graph, Twitter Card Metadata and some general metadata that doesn't belong to a particular type, for example - title, description etc.\n\n## Installation\n\nInstall the package with:\n\n```go\ngo get github.com/ammit/go-metaparser\n```\n\nImport it with:\n\n```go\nimport \"github.com/ammit/go-metaparser\"\n```\n\nand use parser as the package name inside the code.\n\n## Usage example\n\nPlease check the example folder for details.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tparser \"github.com/ammit/go-metaparser\"\n)\n\nconst (\n\turl = \"http://ogp.me\"\n)\n\nfunc main() {\n\tp := parser.New()\n\tb, err := p.FetchHTML(url)\n\tif err != nil {\n\t\tfmt.Printf(\"Could not fetch html from given url: %v \\n\", url)\n\t}\n\tdefer b.Close()\n\n\terr = p.ParseHTML(b)\n\n\tfmt.Printf(\"The parsed title is: %v \\n\", p.Title)\n}\n\n```\n\n## Performance\n\nYou can run the benchmarks yourself, but here's the output on my machine:\n\n```text\n    BenchmarkParser-12         19024             62147 ns/op            9858 B/op        261 allocs/op\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/ammit/go-metaparser/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammit%2Fgo-metaparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammit%2Fgo-metaparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammit%2Fgo-metaparser/lists"}