From 834f34f1e7773adf3e5636629ffd710f1132a913 Mon Sep 17 00:00:00 2001 From: westernmeadow Date: Tue, 6 Feb 2024 16:40:42 -0800 Subject: [PATCH] fixes to CypherMarketplace parser --- MarketPlaces/CypherMarketplace/parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MarketPlaces/CypherMarketplace/parser.py b/MarketPlaces/CypherMarketplace/parser.py index 4f5fd53..c1f8e71 100644 --- a/MarketPlaces/CypherMarketplace/parser.py +++ b/MarketPlaces/CypherMarketplace/parser.py @@ -174,7 +174,7 @@ def cyphermarketplace_listing_parser(soup): success = [] # 20 Vendor_Successful_Transactions href = [] # 23 Product_Links (Urls) - listing = soup.findAll('div', {"class": "card"}) + listing = soup.findAll('div', {"class": "col-12"}) # Populating the Number of Products nm = len(listing) @@ -281,10 +281,10 @@ def cyphermarketplace_links_parser(soup): # Returning all links that should be visited by the Crawler href = [] - listing = soup.findAll('div', {"class": "col-12 col-sm-6 col-md-4 my-1"}) + listing = soup.findAll('div', {"class": "col-12"}) for a in listing: - bae = a.find('div', {"class": "card-body"}).find('a', {"class": "text-info"}, href=True) + bae = a.find('a', href=True) link = bae['href'] href.append(link)