In my Django project I use BeautifulSoup for web scraping.It works ut I can't print or slice it. When I try it give the error: (I'm doing this on the views.py)
"UnicodeEncodeError 'charmap' codec can't encode character '\u200e' in position 59: character maps to <undefined "
. How can I print x variable?
URL = link
user_agent = getRandomUserAgent()
headers = {"User-Agent": user_agent}
page = requests.get(URL, headers=headers)
soup = BeautifulSoup(page.content, 'html.parser')
mylist = soup.find_all("td", class_="a-size-base prodDetAttrValue")
for x in mylist:
print(x)