{"id":20800715,"url":"https://github.com/jeankassio/sioner-metadata-extractor","last_synced_at":"2026-04-17T19:31:49.291Z","repository":{"id":158384631,"uuid":"633983979","full_name":"jeankassio/Sioner-Metadata-Extractor","owner":"jeankassio","description":"Sioner Metadata Extractor uses Chromedriver to extract metadata from websites with javascript using Symfony/Panther.","archived":false,"fork":false,"pushed_at":"2023-05-09T13:28:23.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T12:29:27.548Z","etag":null,"topics":["extractor","extractors","metadata","metadata-extraction","metadata-extractor","panther","panther-web","scraper","scraping","scraping-data","scraping-web","scraping-websites","synfony"],"latest_commit_sha":null,"homepage":"https://jeankassio.dev","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/jeankassio.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":"2023-04-28T18:31:11.000Z","updated_at":"2023-04-29T15:25:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"23137707-d781-4a8e-b133-43359ce93d0b","html_url":"https://github.com/jeankassio/Sioner-Metadata-Extractor","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FSioner-Metadata-Extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FSioner-Metadata-Extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FSioner-Metadata-Extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeankassio%2FSioner-Metadata-Extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeankassio","download_url":"https://codeload.github.com/jeankassio/Sioner-Metadata-Extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147271,"owners_count":20243745,"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":["extractor","extractors","metadata","metadata-extraction","metadata-extractor","panther","panther-web","scraper","scraping","scraping-data","scraping-web","scraping-websites","synfony"],"created_at":"2024-11-17T18:15:00.020Z","updated_at":"2026-04-17T19:31:49.260Z","avatar_url":"https://github.com/jeankassio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sioner Metadata Extractor\nSioner Metadata Extractor uses Chromedriver to extract metadata from websites with javascript using Symfony/Panther.\n\n[![Total Downloads](https://poser.pugx.org/jeankassio/Sioner-Metadata-Extractor/downloads)](https://packagist.org/packages/jeankassio/sioner-metadata-extractor)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n### Installing Sioner\n\nUse [Composer](https://getcomposer.org/) to install Sioner in your project:\n\n ```sh\ncomposer require jeankassio/sioner-metadata-extractor\n````\n\n## Dependencies:\n\n### Installing ChromeDriver\n\n```\nsudo apt update\n```\n\n```\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb\n```\n\n```\nsudo apt install wget\n```\n\n```\nsudo dpkg -i google-chrome-stable_current_amd64.deb\n```\n\n```\nsudo apt-get install -f\n```\n\n```\ngoogle-chrome --version\n```\n\n### See the version of the Chrome\n\nGo to: [https://chromedriver.chromium.org/downloads](https://chromedriver.chromium.org/downloads)\n\n\u003cimg width=\"424\" alt=\"image\" src=\"https://user-images.githubusercontent.com/26697873/235277165-6bdbb597-221a-4b0e-99a7-d4faa7bcc3a9.png\"\u003e\n\nClick in your version.\n\n\u003cimg width=\"549\" alt=\"image\" src=\"https://user-images.githubusercontent.com/26697873/235277185-94a3df57-2da1-4d1f-8585-8b1cf6d05f7e.png\"\u003e\n\nDownload to your system\n\nUnzip and upload to your server\n\n```\nsudo mv chromedriver /usr/bin/chromedriver\n```\n\n```\nsudo chown root:root /usr/bin/chromedriver\n```\n\n```\nsudo chmod +x /usr/bin/chromedriver\n```\n\nFinished\n\n# Usage\n\n### Here is some available metadata that was returned by Sioner Metadata Extractor:\n\n\n```json\n{\n   \"domain\":\"github.com\",\n   \"canonical\":\"https:\\/\\/github.com\\/jeankassio\\/Sioner-Metadata-Extractor\",\n   \"title\":\"GitHub - jeankassio\\/Sioner-Metadata-Extractor: Sioner Metadata Extractor uses Chromedriver to extract metadata from websites with javascript, even if it is written in PHP\",\n   \"image\":\"https:\\/\\/opengraph.githubassets.com\\/b22dbba9d6ae7f1bf3f540334ce5b7c01e728daa06739db48430ca0804af9ab0\\/jeankassio\\/Sioner-Metadata-Extractor\",\n   \"description\":\"Sioner Metadata Extractor uses Chromedriver to extract metadata from websites with javascript, even if it is written in PHP - GitHub - jeankassio\\/Sioner-Metadata-Extractor: Sioner Metadata Extracto...\",\n   \"icon\":\"https:\\/\\/github.com\\/favicon.ico\"\n}\n```\n\n```json\n{\n   \"domain\":\"techland.time.com\",\n   \"canonical\":\"https:\\/\\/techland.time.com\\/2011\\/04\\/06\\/linux-exec-competing-against-microsoft-is-like-kicking-a-puppy\\/\",\n   \"title\":\"Linux Exec: Competing Against Microsoft Is Like “Kicking a Puppy” | TIME.com\",\n   \"image\":\"https:\\/\\/techland.time.com\\/wp-content\\/themes\\/time2012\\/library\\/assets\\/images\\/time-logo-og.png\",\n   \"description\":\"Depending who you ask, you'll get a different answer about who's winning the operating system wars. Of course, the Linux people think they've won, but here's the thing--they may be right.\",\n   \"keywords\":\"business, news, linux, open-source, windows\",\n   \"icon\":\"https:\\/\\/techland.time.com\\/favicon.ico\"\n}\n```\n\n```json\n{\n   \"domain\": \"domain string\",\n   \"canonical\": \"og:canonical link string\",\n   \"title\": \"og:title/title website string\",\n   \"image\": \"og:image/first image string\",\n   \"description\": \"og:description/description string\",\n   \"keywords\": \"keywords string\",\n   \"icon\": \"apple-touch-icon/icon string\",\n   \"author\": \"og:author/author string\",\n   \"copyright\": \"copyright string\"\n}\n```\n\n## How it works?\n\nSioner Metadata Extractor can, before running completely in the determined amount of seconds (explained later), quickly run the search for the determined data and obtain this data without the need to use javascript, thus saving its execution time.\nTo do this, just pass the data you want to obtain as mandatory in the first verification as parameter #4\n\n```php\nuse JeanKassio\\Sioner\\MetadataExtractor\n\n$YourLink = \"https://github.com/jeankassio/Sioner-Metadata-Extractor\";\n\n$code = new MetadataExtractor($YourLink, null, null, ['website', 'title', 'image', 'description']);\n\n$response = $code-\u003eExtractMetadata();\n\necho json_encode($response, JSON_UNESCAPED_UNICODE);\n\n```\n\nBut if that doesn't happen, it will run the Browser with javascript to get the data. The time for which it will run by default is 3 seconds, but you can change this value by setting parameter #2\n\n```php\nuse JeanKassio\\Sioner\\MetadataExtractor\n\n$YourLink = \"https://github.com/jeankassio/Sioner-Metadata-Extractor\";\n\n$code = new MetadataExtractor($YourLink, 2.5); //2.5 seconds\n\n$response = $code-\u003eExtractMetadata();\n\necho json_encode($response, JSON_UNESCAPED_UNICODE);\n```\n\nWe get og:image by default of 200x200, and if it's not found, the next image larger than that dimension will be returned. If none match, the largest is returned. But you can also set these values.\n\n```php\nuse JeanKassio\\Sioner\\MetadataExtractor\n\n$YourLink = \"https://github.com/jeankassio/Sioner-Metadata-Extractor\";\n\n$code = new MetadataExtractor($YourLink, null, [250,300]); //250 width, 300 height\n\n$response = $code-\u003eExtractMetadata();\n\necho json_encode($response, JSON_UNESCAPED_UNICODE);\n```\n\nAnd that way you can pass the parameters you want and build the way you want. Watch\n\n```php\nuse JeanKassio\\Sioner\\MetadataExtractor\n\n$YourLink = \"https://github.com/jeankassio/Sioner-Metadata-Extractor\";\n\n$code = new MetadataExtractor($YourLink, 5, [500,100], ['website', 'title', 'image', 'description']);\n\n$response = $code-\u003eExtractMetadata();\n\necho json_encode($response, JSON_UNESCAPED_UNICODE);\n```\n\n\n## Copyright and license\n\nCode released under the [MIT license](https://github.com/jeankassio/Sioner-Metadata-Extractor/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeankassio%2Fsioner-metadata-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeankassio%2Fsioner-metadata-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeankassio%2Fsioner-metadata-extractor/lists"}