{"id":19398097,"url":"https://github.com/piedweb/urlharvester","last_synced_at":"2025-09-22T08:49:24.205Z","repository":{"id":57041425,"uuid":"164693938","full_name":"PiedWeb/UrlHarvester","owner":"PiedWeb","description":"[PHP] Harvest statistics and meta data from an URL or his source code (seo oriented).","archived":false,"fork":false,"pushed_at":"2021-11-09T09:13:24.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T00:06:36.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dev.piedweb.com/","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/PiedWeb.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":"2019-01-08T16:53:11.000Z","updated_at":"2024-08-12T19:44:42.000Z","dependencies_parsed_at":"2022-08-23T23:31:12.385Z","dependency_job_id":null,"html_url":"https://github.com/PiedWeb/UrlHarvester","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/PiedWeb/UrlHarvester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiedWeb%2FUrlHarvester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiedWeb%2FUrlHarvester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiedWeb%2FUrlHarvester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiedWeb%2FUrlHarvester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiedWeb","download_url":"https://codeload.github.com/PiedWeb/UrlHarvester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiedWeb%2FUrlHarvester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276374683,"owners_count":25631313,"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-09-22T02:00:08.972Z","response_time":79,"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":[],"created_at":"2024-11-10T11:04:52.701Z","updated_at":"2025-09-22T08:49:24.184Z","avatar_url":"https://github.com/PiedWeb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://dev.piedweb.com\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/PiedWeb/piedweb-devoluix-theme/master/src/img/logo_title.png\" width=\"200\" height=\"200\" alt=\"Open Source Package\" /\u003e\n\u003c/a\u003e\u003c/p\u003e\n\n# Url Meta Data Harvester\n\n[![Latest Version](https://img.shields.io/github/tag/PiedWeb/UrlHarvester.svg?style=flat\u0026label=release)](https://github.com/PiedWeb/UrlHarvester/tags)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/PiedWeb/UrlHarvester/Tests?label=tests)](https://github.com/PiedWeb/UrlHarvester/actions)\n[![Quality Score](https://img.shields.io/scrutinizer/g/PiedWeb/UrlHarvester.svg?style=flat)](https://scrutinizer-ci.com/g/PiedWeb/UrlHarvester)\n[![Code Coverage](https://codecov.io/gh/PiedWeb/UrlHarvester/branch/main/graph/badge.svg)](https://codecov.io/gh/PiedWeb/UrlHarvester/branch/main)\n[![Type Coverage](https://shepherd.dev/github/PiedWeb/UrlHarvester/coverage.svg)](https://shepherd.dev/github/PiedWeb/UrlHarvester)\n[![Total Downloads](https://img.shields.io/packagist/dt/piedweb/url-harvester.svg?style=flat)](https://packagist.org/packages/piedweb/url-harvester)\n\nHarvest statistics and meta data from an URL or his source code (seo oriented).\n\nImplemented in [Seo Pocket Crawler](https://piedweb.com/seo/crawler) ([source on github](https://github.com/PiedWeb/SeoPocketCrawler)).\n\n## Install\n\nVia [Packagist](https://img.shields.io/packagist/dt/piedweb/url-harvester.svg?style=flat)\n\n```bash\n$ composer require piedweb/url-harvester\n```\n\n## Usage\n\nHarvest Methods :\n\n```php\nuse \\PiedWeb\\UrlHarvester\\Harvest;\nuse \\PiedWeb\\UrlHarvester\\Link;\n\n$url = 'https://piedweb.com';\n\nHarvest::fromUrl($url)\n    -\u003egetResponse()-\u003egetInfo('total_time') // load time\n    -\u003egetResponse()-\u003egetInfo('size_download')\n    -\u003egetResponse()-\u003egetStatusCode()\n    -\u003egetResponse()-\u003egetContentType()\n    -\u003egetRes...\n\n    -\u003egetTag('h1') // @return first tag content (could be html)\n    -\u003egetUniqueTag('h1') // @return first tag content in utf8 (could contain html)\n    -\u003egetMeta('description') // @return string from content attribute or NULL\n    -\u003egetCanonical() // @return string|NULL\n    -\u003eisCanonicalCorrect() // @return bool\n    -\u003egetRatioTxtCode() // @return int\n    -\u003egetTextAnalysis() // @return \\PiedWeb\\TextAnalyzer\\Analysis\n    -\u003egetKws() // @return 10 more used words\n    -\u003egetBreadCrumb()\n    -\u003eindexable($userAgent = 'googlebot') // @return int corresponding to a const from Indexable\n\n    -\u003egetLinks()\n    -\u003egetLinks(Link::LINK_SELF)\n    -\u003egetLinks(Link::LINK_INTERNAL)\n    -\u003egetLinks(Link::LINK_SUB)\n    -\u003egetLinks(Link::LINK_EXTERNAL)\n    -\u003egetLinkedRessources() // Return an array with all attributes containing a href or a src property\n    -\u003emayFollow() // check headers and meta and return bool\n\n    -\u003egetDomain()\n    -\u003egetBaseUrl()\n\n    -\u003egetRobotsTxt() // @return \\Spatie\\Robots\\RobotsTxt or empty string\n    -\u003esetRobotsTxt($content) // @param string or RobotsTxt\n```\n\n## Testing\n\n```bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [contributing](https://dev.piedweb.com/contributing)\n\n## Credits\n\n- [Pied Web](https://piedweb.com)\n- [All Contributors](https://github.com/PiedWeb/:package_skake/graphs/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiedweb%2Furlharvester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiedweb%2Furlharvester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiedweb%2Furlharvester/lists"}