Skip to content

Instantly share code, notes, and snippets.

@fnneves
Last active September 28, 2020 18:50
Show Gist options
  • Save fnneves/a94249b90d2a288a62867ffb52364b12 to your computer and use it in GitHub Desktop.
Save fnneves/a94249b90d2a288a62867ffb52364b12 to your computer and use it in GitHub Desktop.
webscraping tools comparison
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