Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfdff71

Browse files
committed
google related searches
1 parent adf2c98 commit dfdff71

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

12.5 KB
Loading

docs/search-engine/google/parse-page.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,17 @@ If ``null`` is returned, it means that the parsing failed. In this case check th
576576

577577
## Related searches
578578

579-
Not implemented yet.
579+
Google uses to give a list of related searches at the bottom of the page:
580580

581+
![number of results](images/related-searches.png)
582+
583+
```php
584+
$relatedSearches = $response->getRelatedSearches();
585+
foreach ($relatedSearches as $relatedSearch) {
586+
$url = $relatedSearch->url;
587+
$title = $relatedSearch->title;
588+
}
589+
```
581590

582591
## Custom parsing
583592

0 commit comments

Comments
 (0)