{"id":21034615,"url":"https://github.com/marthym/scraphead","last_synced_at":"2026-02-28T04:15:11.910Z","repository":{"id":65508459,"uuid":"466233885","full_name":"Marthym/scraphead","owner":"Marthym","description":"🤖 Scraphead allow scrapping html from URL in order to retrieve OpenGraph, Twitter Card and many other meta information from HTML head tag.","archived":false,"fork":false,"pushed_at":"2025-02-25T21:57:59.000Z","size":384,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-03T10:04:29.666Z","etag":null,"topics":["html","java","scraper"],"latest_commit_sha":null,"homepage":"https://blog.ght1pc9kc.fr/","language":"HTML","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/Marthym.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-04T18:42:02.000Z","updated_at":"2025-02-25T21:57:33.000Z","dependencies_parsed_at":"2024-11-03T10:21:41.876Z","dependency_job_id":"50b8cc2c-ec93-4cf0-bdfb-48c20a412a8c","html_url":"https://github.com/Marthym/scraphead","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marthym%2Fscraphead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marthym%2Fscraphead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marthym%2Fscraphead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marthym%2Fscraphead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marthym","download_url":"https://codeload.github.com/Marthym/scraphead/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254349598,"owners_count":22056380,"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":["html","java","scraper"],"created_at":"2024-11-19T13:07:44.483Z","updated_at":"2026-02-28T04:15:11.849Z","avatar_url":"https://github.com/Marthym.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scraphead [![](https://img.shields.io/github/release/Marthym/scraphead.svg)](https://GitHub.com/Marthym/scraphead/releases/) [![GitHub license](https://img.shields.io/github/license/Marthym/scraphead.svg)](https://github.com/Marthym/scraphead/blob/master/LICENSE)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Marthym_scraphead\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=Marthym_scraphead)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Marthym_scraphead\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=Marthym_scraphead)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=Marthym_scraphead\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=Marthym_scraphead)\n\n**Scraphead** allow scrapping html from URL in order to retrieve OpenGraph, Twitter Card and many other meta information\nfrom HTML head tag.\n\n## Description\n\n**Scraphead** was divided into `core` and `netty`. The `core` contains all the logic, the HTML head parsing and the\nmapping into **OpenGraph** and **Twitter Card** model. The `netty` was one of the multiple possible implementations for\nthe web client.\n\n### Main features\n\n* non blocking\n* download only the `\u003chead/\u003e`, not the entire HTML file\n* Multiple web client implementation available\n* Detect file encoding\n* Read [OpenGraph](https://ogp.me/)\n  and [Twitter Card](https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started), and more\n* Allow plugins for specific treatment *(depending on domain for example)*\n* build for Java 17 and modules\n\n## Installation\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003efr.ght1pc9kc\u003c/groupId\u003e\n    \u003cartifactId\u003escraphead-core\u003c/artifactId\u003e\n    \u003cversion\u003e${scraphead.version}\u003c/version\u003e\n\u003c/dependency\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003efr.ght1pc9kc\u003c/groupId\u003e\n    \u003cartifactId\u003escraphead-netty\u003c/artifactId\u003e\n    \u003cversion\u003e${scraphead.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\nWith all collectors :\n\n```java\nScrapClient scrapHttpClient = new NettyScrapClient();\nHeadScraper scraper = HeadScrapers.builder(scrapHttpClient).build();\nscraper.scrap(URI.create(\"https://blog.ght1pc9kc.fr/2021/server-sent-event-vs-websocket-avec-spring-webflux.html\"))\n    .map(doWhatEverYouWantWithMeta)\n    .subscribe();\n```\n\nWith limited collectors' usage :\n\n```java\nScrapClient scrapClient = new NettyScrapClient();\nHeadScraper scraper = HeadScrapers.builder(scrapClient)\n  .useMetaTitleAndDescr()\n  .useOpengraph()\n  .build();\nscraper.scrap(URI.create(\"https://blog.ght1pc9kc.fr/2021/server-sent-event-vs-websocket-avec-spring-webflux.html\"))\n  .map(doWhatEverYouWantWithMeta)\n  .subscribe();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarthym%2Fscraphead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarthym%2Fscraphead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarthym%2Fscraphead/lists"}