Created
September 2, 2021 10:21
-
-
Save rvth/dc4cafe7b25eb0ccc2e3d281f82873e0 to your computer and use it in GitHub Desktop.
This file contains 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
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