{"id":19477019,"url":"https://github.com/opportus/web-scraper","last_synced_at":"2026-05-14T18:02:43.903Z","repository":{"id":57032469,"uuid":"159544247","full_name":"opportus/web-scraper","owner":"opportus","description":"A web scraper taking as arguments a list of URLs and a list of XPath queries to perform on each document. Returns an instance of DataInterface.","archived":false,"fork":false,"pushed_at":"2018-12-29T11:14:04.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T06:37:10.208Z","etag":null,"topics":["csv","json","web-scraper","web-scraping","web-scrapper","web-scrapping","webscraper","webscraping","webscrapper","webscrapping","xpath"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/opportus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-28T18:07:02.000Z","updated_at":"2023-09-03T16:04:53.000Z","dependencies_parsed_at":"2022-08-24T05:41:00.905Z","dependency_job_id":null,"html_url":"https://github.com/opportus/web-scraper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opportus%2Fweb-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opportus%2Fweb-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opportus%2Fweb-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opportus%2Fweb-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opportus","download_url":"https://codeload.github.com/opportus/web-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240702342,"owners_count":19843892,"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":["csv","json","web-scraper","web-scraping","web-scrapper","web-scrapping","webscraper","webscraping","webscrapper","webscrapping","xpath"],"created_at":"2024-11-10T19:43:22.644Z","updated_at":"2026-05-14T18:02:38.854Z","avatar_url":"https://github.com/opportus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Scraper\n\nA web scraper taking as arguments a list of URIs and a list of XPath queries to perform on each document. Returns an instance of [`DataInterface`](https://github.com/opportus/web-scraper/blob/master/src/DataInterface.php).\n\n## Installation\n\n```bash\n$ composer require opportus/web-scraper\n```\n\n## Usage\n\n```php\nUse Opportus\\WebScraper\\WebScraper;\n\n$uris = [\n    'https://en.wikipedia.org/wiki/Web_scraping',\n    'https://en.wikipedia.org/wiki/XPath',\n];\n\n$queries = [\n    '//p[1][node()]',\n    '//div[@id=\"mw-normal-catlinks\"]/ul//li[node()]',\n];\n\n$scraper = new WebScraper();\n\n$data = $scraper-\u003escrap($uris, $queries); // @see https://github.com/opportus/web-scraper/blob/master/src/DataInterface.php\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopportus%2Fweb-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopportus%2Fweb-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopportus%2Fweb-scraper/lists"}