{"id":13724348,"url":"https://github.com/dyatlov/go-htmlinfo","last_synced_at":"2026-04-09T00:02:15.079Z","repository":{"id":57491425,"uuid":"42271624","full_name":"dyatlov/go-htmlinfo","owner":"dyatlov","description":"Go HTML Info package for extracting meaningful information from html page","archived":false,"fork":false,"pushed_at":"2023-01-23T11:17:17.000Z","size":18,"stargazers_count":35,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-19T02:54:36.802Z","etag":null,"topics":["go","golang","html","json","parse"],"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/dyatlov.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":"2015-09-10T21:28:07.000Z","updated_at":"2024-03-20T21:29:00.000Z","dependencies_parsed_at":"2023-02-12T22:45:29.880Z","dependency_job_id":null,"html_url":"https://github.com/dyatlov/go-htmlinfo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dyatlov/go-htmlinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatlov%2Fgo-htmlinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatlov%2Fgo-htmlinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatlov%2Fgo-htmlinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatlov%2Fgo-htmlinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyatlov","download_url":"https://codeload.github.com/dyatlov/go-htmlinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatlov%2Fgo-htmlinfo/sbom","scorecard":{"id":361960,"data":{"date":"2025-08-11","repo":{"name":"github.com/dyatlov/go-htmlinfo","commit":"d9417c75de65fbae5b16f4038b421c9e1cc61f0d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/25 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T11:04:04.003Z","repository_id":57491425,"created_at":"2025-08-18T11:04:04.004Z","updated_at":"2025-08-18T11:04:04.004Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["go","golang","html","json","parse"],"created_at":"2024-08-03T01:01:55.365Z","updated_at":"2026-04-09T00:02:15.057Z","avatar_url":"https://github.com/dyatlov.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"Go HTML Info\n===\n\nGo HTML Info provides a simple interface to extract meaningful information from an html page.\n\nsource docs: http://godoc.org/github.com/dyatlov/go-htmlinfo/htmlinfo\n\nInstall: `go get github.com/dyatlov/go-htmlinfo/htmlinfo`\n\nUse: `import \"github.com/dyatlov/go-htmlinfo/htmlinfo\"`\n\n`Parse` method parses all html content into structurized ata.\n`GenerateOembedFor` method generate oembed info from that structurized data. It generates that info based on available data, even if no oembed information found on the page.\n\nExample:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\n\t\"github.com/dyatlov/go-htmlinfo/htmlinfo\"\n)\n\nfunc main() {\n\tu := \"http://techcrunch.com/2015/09/09/ipad-pro-coming-in-november-pricing-starts-at-799/\"\n\n\tresp, err := http.Get(u)\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tdefer resp.Body.Close()\n\n\tinfo := htmlinfo.NewHTMLInfo()\n\n\t// if url can be nil too, just then we won't be able to fetch (and generate) oembed information\n\terr = info.Parse(resp.Body, \u0026u, nil)\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"Info:\\n%s\\n\", info)\n\n\tfmt.Printf(\"Oembed information: %s\\n\", info.GenerateOembedFor(u))\n}\n```\n\nResult would be:\n\n_Info:_\n```javascript\n{\n    \"title\": \"iPad Pro Coming In November, Pricing Starts At $799  |  TechCrunch\",\n    \"description\": \"Apple unveiled its new iPad Pro today. If you're wondering when you can get your hands on it, and how much it will cost, here you go: Apple says the iPad Pro..\",\n    \"author_name\": \"Anthony Ha\",\n    \"canonical_url\": \"http://techcrunch.com/2015/09/09/ipad-pro-coming-in-november-pricing-starts-at-799/\",\n    \"oembed_json_url\": \"https://public-api.wordpress.com/oembed/1.0/?format=json\\u0026url=http%3A%2F%2Ftechcrunch.com%2F2015%2F09%2F09%2Fipad-pro-coming-in-november-pricing-starts-at-799%2F\\u0026for=wpcom-auto-discovery\",\n    \"oembed_xml_url\": \"https://public-api.wordpress.com/oembed/1.0/?format=xml\\u0026url=http%3A%2F%2Ftechcrunch.com%2F2015%2F09%2F09%2Fipad-pro-coming-in-november-pricing-starts-at-799%2F\\u0026for=wpcom-auto-discovery\",\n    \"favicon_url\": \"https://s0.wp.com/wp-content/themes/vip/techcrunch-2013/assets/images/favicon.ico\",\n    \"touch_icons\": [{\n      { url: 'https://s0.wp.com/wp-content/themes/vip/techcrunch-2013/assets/images/favicon.ico',\n       type: 'icon',\n       width: 0,\n       height: 0,\n       is_scalable: false },\n     { url: 'https://s0.wp.com/wp-content/themes/vip/techcrunch-2013/assets/images/homescreen_TCIcon.png',\n       type: 'apple-touch-icon-precomposed',\n       width: 0,\n       height: 0,\n       is_scalable: false },\n       // ...\n    ],\n    \"image_src_url\": \"\",\n    \"main_content\": \"Apple unveiled its new iPad Pro today. If you’re wondering when you can get your hands on it, and how much it will cost, here you go: Apple says the iPad Pro and related accessories will be available in November.\\nPricing will start at $799 with 32 gigabytes of memory and WiFi-only connectivity, with a $949 price tag for 128 GB, and $1,079 for 128 GB and a cellular connection. If you want the company’s new stylus, dubbed the Apple Pencil, that’ll cost you $99, and the Smart Keyboard will cost $169.\\nThat may seem pretty pricey compared to other iPads — in fact, Apple said today that it’s dropping pricing on its iPad Mini 2, which its considers to be the entry-level iPad, to $269. What you’re paying for (among other things) is a 12.9-inch screen with resolution of 2,732 x 2,048 pixels, Apple’s A9X chip and four speakers.\\nAnd, as the name and on-stage demos suggest, Apple seems to be pitching this for enterprise use and productivity, not for casual use.\\n\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tSay Hello To The Brand-New iPad Pro\\n\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\",\n    \"opengraph\": {\n        \"type\": \"article\",\n        \"url\": \"http://social.techcrunch.com/2015/09/09/ipad-pro-coming-in-november-pricing-starts-at-799/\",\n        \"title\": \"iPad Pro Coming In November, Pricing Starts At $799\",\n        \"description\": \"Apple unveiled its new iPad Pro today. If you're wondering when you can get your hands on it, and how much it will cost, here you go: Apple says the iPad Pro..\",\n        \"determiner\": \"\",\n        \"site_name\": \"TechCrunch\",\n        \"locale\": \"\",\n        \"locales_alternate\": null,\n        \"images\": [{\n            \"url\": \"https://tctechcrunch2011.files.wordpress.com/2015/09/screen-shot-2015-09-09-at-1-49-10-pm.png?w=560\\u0026h=292\\u0026crop=1\",\n            \"secure_url\": \"\",\n            \"type\": \"\",\n            \"width\": 0,\n            \"height\": 0\n        }],\n        \"audios\": null,\n        \"videos\": null,\n        \"article\": {\n            \"published_time\": null,\n            \"modified_time\": null,\n            \"expiration_time\": null,\n            \"section\": \"\",\n            \"tags\": null,\n            \"authors\": null\n        }\n    },\n    \"oembed\": {\n        \"type\": \"link\",\n        \"url\": \"http://techcrunch.com/2015/09/09/ipad-pro-coming-in-november-pricing-starts-at-799/\",\n        \"provider_url\": \"http://techcrunch.com\",\n        \"provider_name\": \"TechCrunch\",\n        \"title\": \"iPad Pro Coming In November, Pricing Starts At\\u0026nbsp;$799\",\n        \"description\": \"\",\n        \"width\": 0,\n        \"height\": 0,\n        \"thumbnail_url\": \"https://i1.wp.com/tctechcrunch2011.files.wordpress.com/2015/09/screen-shot-2015-09-09-at-1-49-10-pm.png?fit=440%2C330\",\n        \"thumbnail_width\": 440,\n        \"thumbnail_height\": 218,\n        \"author_name\": \"\\u003ca href=\\\"/author/anthony-ha/\\\" title=\\\"Posts by Anthony Ha\\\" onclick=\\\"s_objectID='river_author';\\\" rel=\\\"author\\\"\\u003eAnthony Ha\\u003c/a\\u003e\",\n        \"author_url\": \"/author/anthony-ha/\",\n        \"html\": \"Apple \\u003ca href=\\\"http://techcrunch.com/2015/09/09/apple-unveils-the-ipad-pro/\\\"\\u003eunveiled its new iPad Pro today\\u003c/a\\u003e. If you're wondering when you can get your hands on it, and how much it will cost, here you go: Apple says the iPad Pro and related accessories will be available in November.\\r\\n\\r\\nPricing will start at $799 with 32 gigabytes of memory and WiFi-only connectivity, with a $949 price tag for 128 GB, and $1,079 for 128 GB and a cellular connection. If you want the company's new stylus, \\u003ca href=\\\"http://techcrunch.com/2015/09/09/the-apple-pencil-is-the-ipad-pros-secret-weapon/#.91issd:LNXD\\\"\\u003edubbed the Apple Pencil\\u003c/a\\u003e, that'll cost you $99, and the Smart Keyboard will cost $169.\\r\\n\"\n    }\n}\n```\n\n_Oembed information:_\n```javascript\n{\n    \"type\": \"link\",\n    \"url\": \"http://techcrunch.com/2015/09/09/ipad-pro-coming-in-november-pricing-starts-at-799/\",\n    \"provider_url\": \"http://techcrunch.com\",\n    \"provider_name\": \"TechCrunch\",\n    \"title\": \"iPad Pro Coming In November, Pricing Starts At\\u0026nbsp;$799\",\n    \"description\": \"Apple unveiled its new iPad Pro today. If you're wondering when you can get your hands on it, and how much it will cost, here you go: Apple says the iPad Pro..\",\n    \"width\": 0,\n    \"height\": 0,\n    \"thumbnail_url\": \"https://i1.wp.com/tctechcrunch2011.files.wordpress.com/2015/09/screen-shot-2015-09-09-at-1-49-10-pm.png?fit=440%2C330\",\n    \"thumbnail_width\": 440,\n    \"thumbnail_height\": 218,\n    \"author_name\": \"\\u003ca href=\\\"/author/anthony-ha/\\\" title=\\\"Posts by Anthony Ha\\\" onclick=\\\"s_objectID='river_author';\\\" rel=\\\"author\\\"\\u003eAnthony Ha\\u003c/a\\u003e\",\n    \"author_url\": \"/author/anthony-ha/\",\n    \"html\": \"Apple \\u003ca href=\\\"http://techcrunch.com/2015/09/09/apple-unveils-the-ipad-pro/\\\"\\u003eunveiled its new iPad Pro today\\u003c/a\\u003e. If you're wondering when you can get your hands on it, and how much it will cost, here you go: Apple says the iPad Pro and related accessories will be available in November.\\r\\n\\r\\nPricing will start at $799 with 32 gigabytes of memory and WiFi-only connectivity, with a $949 price tag for 128 GB, and $1,079 for 128 GB and a cellular connection. If you want the company's new stylus, \\u003ca href=\\\"http://techcrunch.com/2015/09/09/the-apple-pencil-is-the-ipad-pros-secret-weapon/#.91issd:LNXD\\\"\\u003edubbed the Apple Pencil\\u003c/a\\u003e, that'll cost you $99, and the Smart Keyboard will cost $169.\\r\\n\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyatlov%2Fgo-htmlinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyatlov%2Fgo-htmlinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyatlov%2Fgo-htmlinfo/lists"}