gazpacho logo gazpacho: strict

1 2 3 4 5 6
Notes

Gazpacho can be run in a strict mode but you can also turn it off.

Let's check the website parsing code once more. You can grab all the cards from the website with this code.

url = "https://pypi.org/project/pandas/#history"

from gazpacho import get, Soup
html = get(url)
soup = Soup(html)
cards = soup.find("a", {"class": "card"})

If you want to parse these cards it's important to understand the difference between these two queries;

cards[0].find("p", {"class": "release__version"}, strict=True).text
cards[0].find("p", {"class": "release__version"}, strict=False).text