Download the PHP package tojibon/web-scraper without Composer
On this page you can find all versions of the php package tojibon/web-scraper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tojibon/web-scraper
More information about tojibon/web-scraper
Files in tojibon/web-scraper
Download tojibon/web-scraper
More information about tojibon/web-scraper
Files in tojibon/web-scraper
Vendor tojibon
Package web-scraper
Short Description A web scraper php class using PHP cURL to scrap web page. By which you can scrap web page by cURL get, post methods also by which you can scrap web page content from a asp.net based websites with form post.
License GPL-3.0
Package web-scraper
Short Description A web scraper php class using PHP cURL to scrap web page. By which you can scrap web page by cURL get, post methods also by which you can scrap web page content from a asp.net based websites with form post.
License GPL-3.0
Please rate this library. Is it a good library?
Informations about the package web-scraper
PHP Web Scraping Class
- A very simple single page PHP web scraper class that utilizes the cURL library to scrape web page content. Scrape web pages using GET or POST methods. Also scrape web page content from asp.net based websites using form POST methods.
- Support for:
- GET Method
- POST Method
- ASP Calls
- Retrieve Page Contents by Markup Tag Names
- Retrieve Values from Form Fields
Installation
Getting a full webpage content:
<?php require 'vendor/autoload.php'; // Create a Scraper instance with only the URL specified $scraper = new \PhpFarmer\WebScraper\Scraper('https://example.com'); $pageHtmlContent = $scraper->getPageContent('https://example.com/page.html'); ?>
Getting a full webpage content:
<?php require 'vendor/autoload.php'; // Create a Scraper instance with custom cache settings $scraperWithCache = new Scraper('https://example.com', true, './custom_cache/', 600); $pageHtmlContent = $scraper->getPageContent('https://example.com/page.html'); ?>
Getting a full webpage content with Using Proxy IP:
<?php require 'vendor/autoload.php'; // Create a Scraper instance with only the URL specified $scraper = new \PhpFarmer\WebScraper\Scraper('https://example.com'); $pageHtmlContent = $scraper->curl('https://example.com/page.html', "93.118.xx.141:8800", "6USERR:8PASS1"); ?>
Parsing a page html content:
<?php $subHtmlContent = $scraper->getHtmlContentBetweenTags($pageHtmlContent, '', ''); ?>
How It Works:
- Include The Class scraper.php in your Working page header.
- Set some default settings.
- Get the page content by its existing methods.
- Split your content by getHtmlContentBetweenTags methods if single content you are searching for.
- If grid data needed, split the content with a needle Ex: explode()
- Then loop it whole and get the content by getHtmlContentBetweenTags again to make the final array of grid data.
- That's' all
Thanks
All versions of web-scraper with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.5 || ^7.0
The package tojibon/web-scraper contains the following files
Loading the files please wait ....