{"id":19355674,"url":"https://github.com/soyfelixbarros/scraper","last_synced_at":"2025-10-14T21:38:20.452Z","repository":{"id":62504103,"uuid":"102618762","full_name":"soyFelixBarros/Scraper","owner":"soyFelixBarros","description":"🕷 Raspar una web y obtener su contenido.","archived":false,"fork":false,"pushed_at":"2018-03-20T16:45:22.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T13:51:11.923Z","etag":null,"topics":["scraping","web"],"latest_commit_sha":null,"homepage":"","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/soyFelixBarros.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-06T14:28:36.000Z","updated_at":"2018-03-20T16:45:24.000Z","dependencies_parsed_at":"2022-11-02T12:45:21.423Z","dependency_job_id":null,"html_url":"https://github.com/soyFelixBarros/Scraper","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/soyFelixBarros/Scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyFelixBarros%2FScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyFelixBarros%2FScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyFelixBarros%2FScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyFelixBarros%2FScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soyFelixBarros","download_url":"https://codeload.github.com/soyFelixBarros/Scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyFelixBarros%2FScraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021373,"owners_count":26087023,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["scraping","web"],"created_at":"2024-11-10T06:42:00.367Z","updated_at":"2025-10-14T21:38:20.423Z","avatar_url":"https://github.com/soyFelixBarros.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scraper\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/felix/scraper.svg?style=flat-square)](https://packagist.org/packages/felix/scraper)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/soyFelixBarros/Scraper/master.svg?style=flat-square)](https://travis-ci.org/soyFelixBarros/Scraper)\n[![Quality Score](https://img.shields.io/scrutinizer/g/soyFelixBarros/Scraper.svg?style=flat-square)](https://scrutinizer-ci.com/g/soyFelixBarros/Scraper)\n[![StyleCI](https://styleci.io/repos/102618762/shield)](https://styleci.io/repos/102618762)\n[![Total Downloads](https://img.shields.io/packagist/dt/felix/scraper.svg?style=flat-square)](https://packagist.org/packages/felix/scraper)\n\n\u003e Raspar una web y obtener su contenido.\n\n## Instalar\n\n*Necesitas **PHP \u003e= 7.0**, pero se recomienda la última versión estable de PHP.*\n\nLa forma recomendada de instalar Scraper en tu proyecto es a través de [Composer](https://getcomposer.org/). Ejecute el siguiente comando para instalar la última versión estable de Scraper:\n\n```bash\ncomposer require felix/scraper\n```\n\n## Usar\n\n### Raspar página web\n\nPara obtener el contenido de una página web usamos el método `extractring()`, pasándole la **URL** y el **XPATH**:\n\n```php\nuse Felix\\Scraper\\Crawler;\n\n$data = Crawler::extracting('https://example.com', '//html/body/div/h1')\n\nreturn $data-\u003etext(); // Example Domain\n```\n\n### Limpiar datos\n\n```php\nuse Felix\\Scraper\\Str;\n\n$str = Str::clean(\"\u0026nbsp; String  Examples \\n\");\n\nreturn $str; // -\u003e String Examples\n```\n\n### Normalizar URL\n\n```php\nuse Felix\\Scraper\\Url;\n\n$url = Url::normalize('//example.com/post-title');\n\nreturn $url; // -\u003e http://example.com/post-title\n```\n\n## Desarrolladores\n\n### Instalación\n\nClonando el proyecto e instalando las dependencias:\n\n```bash\ngit clone https://github.com/soyFelixBarros/Scraper.git\ncd scraper\ncomposer install\n```\n\n### Cambios\n\nPor favor, vea [CHANGELOG](CHANGELOG.md) para más información sobre lo que ha cambiado recientemente.\n\n### Pruebas\n\n```bash\nvendor/bin/phpunit\n```\n\n## Licencia MIT\n\nPor favor, consulte el [archivo de licencia](LICENSE.md) para obtener más información.\n\n------\n\nDesarrollado por [Felix Barros](https://twitter.com/soyFelixBarros)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoyfelixbarros%2Fscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoyfelixbarros%2Fscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoyfelixbarros%2Fscraper/lists"}