From 5c9af8655c82611fe8cd53d434055a01607172d2 Mon Sep 17 00:00:00 2001 From: Anita Mehr Date: Sat, 2 Dec 2023 23:19:07 +0000 Subject: [PATCH] pushing parser for WeTheNorth, for initial review --- MarketPlaces/WeTheNorth/parser.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MarketPlaces/WeTheNorth/parser.py b/MarketPlaces/WeTheNorth/parser.py index 56a42ec..b530c93 100644 --- a/MarketPlaces/WeTheNorth/parser.py +++ b/MarketPlaces/WeTheNorth/parser.py @@ -47,11 +47,11 @@ def wethenorth_description_parser(soup): vendor = vendor.strip() # Finding Vendor Rating - # rating = listDes.find('span',{'class':'levelSet'}) - # rating = rating.text - # rating = rating.replace('\n', ' ') - # rating = rating.replace(",", "") - # rating = rating.strip() + rating = listDes.find('span',{'class':'levelSet'}) + rating = rating.text + rating = rating.replace('\n', ' ') + rating = rating.replace(",", "") + rating = rating.strip() # Finding Successful Transactions success = listDes.find_all('p')[1] @@ -92,6 +92,7 @@ def wethenorth_description_parser(soup): describe = describe.replace("\r", " ") describe = describe.strip() + # cannot find any tag for these ''' # Finding the Number of Product Reviews tag = soup.findAll(text=re.compile('Reviews'))