We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5284ffd commit f8c45d3Copy full SHA for f8c45d3
g2-scraper/g2.py
@@ -47,7 +47,7 @@ def parse_search_page(response: ScrapeApiResponse):
47
relative_link = result.xpath(".//div[contains(@class, 'elv-text-lg')]/parent::a/@href").get()
48
link = urljoin(response.request.url, relative_link)
49
50
- image = result.xpath(".//img[@itemprop='image']/@data-deferred-image-src").get()
+ image = result.xpath(".//img[@alt='Product Avatar Image']/@src").get()
51
52
raw_rate = result.xpath(".//label[contains(text(), '/5')]/text()").get()
53
rate = float(raw_rate.split("/")[0]) if raw_rate else None
0 commit comments