{"id":19784318,"url":"https://github.com/alexprut/spider4schema","last_synced_at":"2025-04-30T22:32:07.001Z","repository":{"id":9650545,"uuid":"11586462","full_name":"alexprut/Spider4Schema","owner":"alexprut","description":"A Web Bot that crawls the http://Schema.org web site to retrieve all available Types and Properties in order to create a JSON file and also some PHP libraries.","archived":true,"fork":false,"pushed_at":"2020-06-08T16:08:35.000Z","size":630,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-15T16:41:53.878Z","etag":null,"topics":["json","php","schema-org","webbot"],"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/alexprut.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":"2013-07-22T16:36:18.000Z","updated_at":"2024-06-04T11:14:59.000Z","dependencies_parsed_at":"2022-08-24T02:30:33.447Z","dependency_job_id":null,"html_url":"https://github.com/alexprut/Spider4Schema","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexprut%2FSpider4Schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexprut%2FSpider4Schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexprut%2FSpider4Schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexprut%2FSpider4Schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexprut","download_url":"https://codeload.github.com/alexprut/Spider4Schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791742,"owners_count":21644448,"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":["json","php","schema-org","webbot"],"created_at":"2024-11-12T06:11:10.828Z","updated_at":"2025-04-30T22:32:06.445Z","avatar_url":"https://github.com/alexprut.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spider4Schema [![Build Status](https://travis-ci.org/alexprut/Spider4Schema.svg)](https://travis-ci.org/alexprut/Spider4Schema)\n=============\nA Web Bot that crawls the http://Schema.org web site to retrieve all available Types and Properties in order to create a JSON file and also some PHP libraries.  \nFor generating Microdata or RDFa Lite 1.1 semantics you can use the PHP library https://github.com/alexprut/PHPStructuredData.\nCreated during the Google Summer of Code 2013 and 2014.    \n  \n(__Deprecated__)\n\nDocumentation\n-------------  \n#### Files structure:\n* ```configuration.php``` → the configuration file, setup the type of library to be created.\n* ```http.php``` → a class that handles all HTTP requests.\n* ```parser.php``` → methods to parse the HTML and retrieve all needed information.\n* ```fileCreator.php``` → methods to create the library files.\n  \nUsage\n-----\n* Make sure you have the cURL library installed, and the PHP CLI shell script package\n* Clone the repo: git clone https://github.com/alexprut/Spider4Schema.git\n* Enter ```Spider4Schema/``` directory\n* Open your ```terminal/shell``` and call ```php bin/spider.php [minified|json|normal] [true|false|verbose]```\n  \nThe libraries will be created in the ```dist/``` folder.\n  \nLibrary types\n-------------\nThere are 3 types of libraries you can create:  \n\n* JSON → a .json file containing all available Types and Properties, used in library https://github.com/alexprut/PHPStructuredData for generating valid Microdata and RDFa Lite 1.1 semantics\n* Minified → a .php file with an array containing all available Types and Properties\n* Normal → each Type is a PHP class file (an abstract class with static Properties)\n  \nPerformance\n-----------\nThe __json__ library:  \n1 .json file, 91 KB, contains all available Types (620+) and its Properties\n  \nThe __minified__ library:  \n1 php file, 107 KB, contains all available Types (620+) and its Properties, stored in a hash table (array)\n  \nThe __normal__ abstract static library:   \n622 php files, 710 KB, 1 file for each available Type\n\nTodos\n-----\n* Add to the all the required properties specified by Google, Yandex, Baidu.\n* Instead of making 620+ HTTP requests, parse one file: https://schema.org/docs/schema_org_rdfa.html\n* Write tests.\n\nLicense\n-------\nSpider4Schema is licensed under the MIT License – see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexprut%2Fspider4schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexprut%2Fspider4schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexprut%2Fspider4schema/lists"}