diff --git a/packt.php b/packt.php index 4019761..e6ae8e5 100644 --- a/packt.php +++ b/packt.php @@ -65,6 +65,9 @@ foreach ($books as $book) { $bookData['epub'] = $book->first('a[href$=epub]::attr(href)'); $bookData['mobi'] = $book->first('a[href$=mobi]::attr(href)'); $bookData['code'] = $book->first('a[href*=code_download]::attr(href)'); + $bookData['isbn'] = $book->first('div[isbn]::attr(isbn)'); + $bookData['img'] = $book->first('img[class*=imagecache]::attr(src)'); + $bookData['url'] = $book->first('div[class*=product-thumbnail]')->first('a::attr(href)'); $booksData[] = $bookData;