Browse Source

fixes to CypherMarketplace parser

main
westernmeadow 11 months ago
parent
commit
834f34f1e7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      MarketPlaces/CypherMarketplace/parser.py

+ 3
- 3
MarketPlaces/CypherMarketplace/parser.py View File

@ -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)

Loading…
Cancel
Save