async def parse_bestbuy_url(s, url, model): # Narrow HTML search down using HTML class selectors. r = await s.get(url) cards = r.html.find('.right-column') for item in cards: card = Card.create_from_bestbuy(item, model) if card is not None: card_id = card.get_item_id() if card_id in card_set.keys(): if card_set[card_id].get_button_text() != card.get_button_text( ): original_text = card_set[card_id].get_button_text() if card.is_in_stock(): notify_difference(card, original_text) card_set[card_id] = card