Fixed parsing search results page and picking correct cover image.
This commit is contained in:
@@ -49,7 +49,7 @@ class DataParser
|
||||
$bookInfo->title = trim($book->first('.authorAllBooks__singleTextTitle')->text());
|
||||
$bookInfo->author = trim($book->first('.authorAllBooks__singleTextAuthor')->text());
|
||||
$bookInfo->url = $book->first('button[data-book-url]')->getAttribute('data-book-url');
|
||||
$bookInfo->cover_url = $book->first('.img-fluid')->getAttribute('src');
|
||||
$bookInfo->cover_url = $book->first('.img-fluid')->getAttribute('data-src');
|
||||
$booksInfo[] = $bookInfo;
|
||||
}
|
||||
return $booksInfo;
|
||||
|
||||
Reference in New Issue
Block a user