Skip to content

Instantly share code, notes, and snippets.

@rvth
Created September 2, 2021 10:21
Show Gist options
  • Save rvth/dc4cafe7b25eb0ccc2e3d281f82873e0 to your computer and use it in GitHub Desktop.
Save rvth/dc4cafe7b25eb0ccc2e3d281f82873e0 to your computer and use it in GitHub Desktop.
URL = 'https://www.bbc.co.uk'
req = requests.get(url)
soup = BeautifulSoup(req.text, "html.parser")
links = soup.find_all('a')
df = pd.DataFrame({'links':links})
df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment