Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanifdwyputras/se-scraper
Search Engine scraper with PHP
https://github.com/hanifdwyputras/se-scraper
crawler scraper seo seo-crawler
Last synced: 22 days ago
JSON representation
Search Engine scraper with PHP
- Host: GitHub
- URL: https://github.com/hanifdwyputras/se-scraper
- Owner: hanifdwyputras
- License: mit
- Created: 2023-06-26T16:44:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-27T08:30:42.000Z (over 1 year ago)
- Last Synced: 2024-04-10T06:12:17.982Z (7 months ago)
- Topics: crawler, scraper, seo, seo-crawler
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## introduction
This project/library is focused to my client. And, the project is about to crawling/scraping search engines (e.g. google, yandex, bing,and yahoo) data.## usage
1. the first, you need to load the 'vendor/autoload.php' into your main file.
2. code it
```php
use Hansputera\SeCrawler\Engines\GoogleEngine;$google = new GoogleEngine();
$images = $google->search_image('SMAN 3 Palu');print_r($images); // Array ( ... )
/*
If the results is empty, it would return an empty array: Array()If the results isn't empty:
[14] => Hansputera\SeCrawler\Interfaces\SingleImageItemInterface Object
(
[title] => SMAN 3 Palu (@smantipalu) / Twitter
[size] => 400px x 400px
[image] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[small] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[copy] => twitter.com
)[15] => Hansputera\SeCrawler\Interfaces\SingleImageItemInterface Object
(
[title] => SMA NEGERI 3 PALU (@sman3palu.official) • Instagram photos and videos
[size] => 1080px x 1080px
[image] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[small] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[copy] => www.instagram.com
)[16] => Hansputera\SeCrawler\Interfaces\SingleImageItemInterface Object
(
[title] => SMA Negeri 3 Palu - 3 tips from 51 visitors
[size] => 600px x 600px
[image] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[small] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[copy] => foursquare.com
)[17] => Hansputera\SeCrawler\Interfaces\SingleImageItemInterface Object
(
[title] => Siswi Cantik di Palu Ini Tak Setuju Ujian Akhir Sekolah Berbasis Komputer, Begini Alasannya - Tribunpalu.com
[size] => 700px x 393px
[image] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[small] => data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
[copy] => palu.tribunnews.com
)
*/
```## License
(c) MIT 2023 Hanif Dwy Putra S