From ca3e1f87ab1d5271cf4b50bb0379209218d055f7 Mon Sep 17 00:00:00 2001 From: maforget <11904426+maforget@users.noreply.github.com> Date: Wed, 29 May 2024 19:29:05 -0400 Subject: [PATCH] Fix search image not working. --- AmazonScrapper/Data/Parser/Search/Cover.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmazonScrapper/Data/Parser/Search/Cover.cs b/AmazonScrapper/Data/Parser/Search/Cover.cs index 4e2d106..c3bcaaa 100644 --- a/AmazonScrapper/Data/Parser/Search/Cover.cs +++ b/AmazonScrapper/Data/Parser/Search/Cover.cs @@ -23,7 +23,7 @@ public Cover(HtmlNode node) : base(node) /// the cover link public override object Parse() { - string[] imageLink = Node.SelectSingleNode(@".//img[@class='s-image']")?.Attributes["srcset"] + string[] imageLink = Node.SelectSingleNode(@".//img[contains(@class, 's-image')]")?.Attributes["srcset"] .Value.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries); if (imageLink != null)