Created
September 2, 2021 10:20
-
-
Save rvth/d18ab629b4083d9cc0bfafea9adeba30 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") | |
for link in soup.find_all('a'): | |
print(link.get('href')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment