mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2026-01-04 09:45:26 -05:00
now scraping image resolutions on brave
This commit is contained in:
parent
1cfeabeb7f
commit
1b6182bc3c
1 changed files with 4 additions and 5 deletions
|
|
@ -352,7 +352,6 @@ class brave{
|
|||
$html = fread($handle, filesize("scraper/brave.html"));
|
||||
fclose($handle);*/
|
||||
|
||||
|
||||
try{
|
||||
$html =
|
||||
$this->get(
|
||||
|
|
@ -1290,13 +1289,13 @@ class brave{
|
|||
"source" => [
|
||||
[
|
||||
"url" => $result["properties"]["url"],
|
||||
"width" => null,
|
||||
"height" => null
|
||||
"width" => (int)$result["properties"]["width"],
|
||||
"height" => (int)$result["properties"]["height"]
|
||||
],
|
||||
[
|
||||
"url" => $result["thumbnail"]["src"],
|
||||
"width" => null,
|
||||
"height" => null
|
||||
"width" => (int)$result["thumbnail"]["width"],
|
||||
"height" => (int)$result["thumbnail"]["height"]
|
||||
]
|
||||
],
|
||||
"url" => $result["url"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue