Download the PHP package czepter/phpscraper without Composer
On this page you can find all versions of the php package czepter/phpscraper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download czepter/phpscraper
More information about czepter/phpscraper
Files in czepter/phpscraper
Package phpscraper
Short Description An oppinionated way to access the web. See tests/ for examples.
License GPL-3.0-or-later
Homepage https://phpscraper.de
Informations about the package phpscraper
PHP Scraper
An opinionated & limited way to scrape the web using PHP. The main goal is to get stuff done instead of getting distracted with xPath selectors, preparing data structures, etc. Instead, you can just "go to a website" and get an array with all details relevant to your scraping project.
Under the hood, it uses Goutte and a few other packages. See composer.json.
Sponsors
This project is sponsored by:
Want to sponsor this project? Contact me.
Examples
Here are a few impressions on the way the library works. More examples are on the project website.
Get the Title of a Website
All scraping functionality can be accessed either as a function call or a property call. On the example of title scraping this would like like this:
Scrape the Images from a Website
Scraping the images including the attributes of the img
-tags:
See the full documentation for more information and examples.
All versions of phpscraper with dependencies
ext-intl Version *
fabpot/goutte Version ^4.0
symfony/dom-crawler Version ^5.0
jeremykendall/php-domain-parser Version ^5.6
donatello-za/rake-php-plus Version ^1.0.15