Browse Source

pushing parser for WeTheNorth, for initial review

main
Anita Mehr 1 year ago
parent
commit
5c9af8655c
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      MarketPlaces/WeTheNorth/parser.py

+ 6
- 5
MarketPlaces/WeTheNorth/parser.py View File

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


Loading…
Cancel
Save