diff --git a/src/DataParser.php b/src/DataParser.php index d5dfba3..1a62dd8 100644 --- a/src/DataParser.php +++ b/src/DataParser.php @@ -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;