Skip to content

Instantly share code, notes, and snippets.

@parj
Created January 2, 2022 17:05
Show Gist options
  • Save parj/bc85b61b61faa87c168efdf0912001e6 to your computer and use it in GitHub Desktop.
Save parj/bc85b61b61faa87c168efdf0912001e6 to your computer and use it in GitHub Desktop.
Scrape list of azure services
#First install beautiful soup. Example
# pip3 install beautifulsoup4
import requests
from bs4 import BeautifulSoup
url = 'https://azure.microsoft.com/en-gb/services/'
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
for service in soup.find_all("div", class_="column medium-6 end"):
print(service.h3.span.get_text() + " | " + service.p.get_text())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment