Using findAll in BS4 to create list
问题 I'll start by saying I'm sort of new with Python. I've been working on a Slack bot recently and here's where I'm at so far. source = requests.get(url).content soup = BeautifulSoup(source, 'html.parser') price = soup.findAll("a", {"class":"pricing"})["quantity"] Here is the HTML code I am trying to scrape. <a class="pricing" saleprice="240.00" quantity="1" added="2017-01-01"> S </a> <a class="pricing" saleprice="21.00" quantity="5" added="2017-03-14"> M </a> <a class="pricing" saleprice="139