Created
January 2, 2022 17:05
-
-
Save parj/bc85b61b61faa87c168efdf0912001e6 to your computer and use it in GitHub Desktop.
Scrape list of azure services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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