Last active
September 28, 2020 18:50
-
-
Save fnneves/a94249b90d2a288a62867ffb52364b12 to your computer and use it in GitHub Desktop.
webscraping tools comparison
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
from bs4 import BeautifulSoup | |
import requests | |
url = "https://en.wikipedia.org/wiki/Academy_Award_for_Best_Director" | |
page_code = requests.get(url) | |
soup = BeautifulSoup(page_code.content, features="lxml") | |
# printing the page title | |
print(soup.find("h1").text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment