Мой код такой:
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
import re
my_url = 'https://www.newegg.ca/p/pl?d=graphics+cards&N=100007708&name=Desktop%20Graphics%20Cards'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, 'html.parser')
container = page_soup.findall('div', {'class':'item-info'})
len(container)
Я сталкиваюсь с этой ошибкой:
Traceback (most recent call last):
File "C:/Users/PycharmProjects/Web_Scraper/Web_Scraper.py", line 12, in <module>
container = page_soup.re.findall('div', {'class':'item-info'})
AttributeError: 'NoneType' object has no attribute 'findall'