{"id":20803489,"url":"https://github.com/lucaato/web-scrape","last_synced_at":"2025-06-17T05:37:03.037Z","repository":{"id":174649564,"uuid":"348147551","full_name":"lucaato/web-scrape","owner":"lucaato","description":"A web scrape library prototype that uses annotations and HtmlUnit to help you parse html pages.","archived":false,"fork":false,"pushed_at":"2021-03-15T23:31:08.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"github-prototype","last_synced_at":"2025-01-18T12:49:07.951Z","etag":null,"topics":["htmlunit","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/lucaato.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-15T23:05:37.000Z","updated_at":"2021-03-15T23:31:10.000Z","dependencies_parsed_at":"2023-06-29T14:31:17.595Z","dependency_job_id":null,"html_url":"https://github.com/lucaato/web-scrape","commit_stats":null,"previous_names":["lucaato/web-scrape"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaato%2Fweb-scrape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaato%2Fweb-scrape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaato%2Fweb-scrape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucaato%2Fweb-scrape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucaato","download_url":"https://codeload.github.com/lucaato/web-scrape/tar.gz/refs/heads/github-prototype","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147223,"owners_count":20243772,"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":["htmlunit","java"],"created_at":"2024-11-17T18:53:24.218Z","updated_at":"2025-03-12T03:18:39.326Z","avatar_url":"https://github.com/lucaato.png","language":"Java","readme":"# Web Scrape\nA prototype of a library that aims to help users parse html pages easily using annotations with the help of html unit.\n\nThis is just a prototype and its probably full of bugs. Its not tested at all, just a concept to try out some stuff and see if it could work.\n\n## How to use\n\nCreate a class annotated with the `@UrlScraper` annotation and let the library inject the requested elements.\nThere are three main type of injection:\n- `@Auto` injects user defined classes that are annotated with the `@Scraper` annotation.\n- `@Element` injects HtmlUnit elements like `HtmlBody`.\n- `@TextContent` injects String that represent the textContent of a dom node.\nEvery annotation can manage a List of elements if the type of the class parameter is a `List`.\n\n```java\n@UrlScraper(url = \"http://example.com/\")\npublic class PageScraper {\n\n\t@Element(xpath = \"/html/body/\")\n\tprivate HtmlBody pageBody;\n\n\t@PostConstructor\n\tpublic void postConstructor() {\n\t\t// Called after all fields get injected\n\t}\n  \n\tpublic static void main(String[] args) {\n\t\tWebScrape\u003cPageScraper\u003e webScraper = WebScrape.run(PageScraper.class);\n\n    \t// Instance with injected properties\n\t\tPageScraper scraper = webScraper.getResult();\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaato%2Fweb-scrape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucaato%2Fweb-scrape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaato%2Fweb-scrape/lists"}