{"repo":"crawlbase/crawlbase-php","free":true,"listed":false,"github":"https://github.com/crawlbase/crawlbase-php","clone":"git clone https://github.com/crawlbase/crawlbase-php.git","description":"A lightweight, dependency free PHP class that acts as wrapper for Crawlbase API","language":"PHP","stars":16,"topics":["crawler","crawler-library","scraper","scraping","scraping-php"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"Crawlbase API PHP class A lightweight, dependency free PHP class that acts as wrapper for Crawlbase API. Installing Choose a way of installing: - Use Packagist PHP package manager. - Download the project from Github and save it into your project so you can require it require once('crawlbase-php/src/[class].php') Crawling API First initialize the CrawlingAPI class. You can get your free token here. GET requests Pass the url that you want to scrape plus any options from the ones available in the API documentation. Example: You can pass any options from Crawlbase API. Example: Optionally pass store parameter to true to store a copy of the API response in the Crawlbase Cloud Storage. Example: POST requests Pass the url that you want to scrape, the data that you want to send which can be either a json or a string, plus any options from the ones available in the API documentation. Example: You can send the data as application/json instead of x-www-form-urlencoded by setting option post content type as json. PUT requests Pass the url that you want to scrape, the data that you want to send which can be either a json or a string, plus any options from the ones available in the API documentation. Example: Javascript requests If you need to scrape any website built with Javascript like React, Angular, Vue, etc. You just need to pass your javascript token and use the same calls. Note that only - get is available for javascript and not - post . Same way you can pass javascript additional ","default_branch":null,"files":null,"tree":[],"storefront":"/r/crawlbase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/crawlbase/crawlbase-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}