Skip to content

AminulBD/Spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spider

Grab latest feed from search engine like Google, Bing, WordPress, etc.

Installation

Install the package using composer by using this command below.

composer require aminulbd/spider

Usage

Just import \AminulBD\Spider\Spider package and construct it with supported driver and call the find method like as below.

// require '../vendor/autoload.php'; // if you are going with standalone mode.

use AminulBD\Spider\Spider;

$engine = 'wordpress'; // supported: google, bing and wordpress
$config = [
    'base_uri' => 'https://aminul.net/wp-json/wp/', // This is required for wordpress.
];

$spider = new Spider($engine, $config);

$finder = $spider->find(['q' => 'WordPress']);
$results = $finder->next(); // Here is your results. 

print_r($results);

About

Grab latest feed from search engine like Google, Bing, WordPress, etc.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages