Calmcode - gazpacho: get

Fetching a website with Gazpacho

1 2 3 4 5 6

To get started with gazpacho you'll first need to install it. It's a single pip command though.

python -m pip install gazpacho

To use gazpacho to download the website you'll need to run the folling code;

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

from gazpacho import get
html = get(url)

Notes

It might be that you get an error. Something like "unable to get local issuer certificate". If that's the case that you're probably on a new mac that doesn't have the certificates packages installed. You can fix this by either installing certifi with pip or by running the install command in the main python installation on your machine.

/Applications/Python\ 3.9/Install\ Certificates.command

You can learn more about this issue on stackoverflow.