Skip to content

Instantly share code, notes, and snippets.

View anxo-outeiral's full-sized avatar
:octocat:
Hardcore will never die, but you will.

Anxo anxo-outeiral

:octocat:
Hardcore will never die, but you will.
View GitHub Profile
@anxo-outeiral
anxo-outeiral / web_scraping.py
Created May 3, 2024 11:42
Extracting Links from a Website Using Python
# Original code: https://medium.com/@cuncis/extracting-links-from-a-website-using-python-a24e195e6c62
import requests
from bs4 import BeautifulSoup
# send a GET request to the website
url = 'https://www.example.com'
response = requests.get(url)
# parse the HTML content of the page with BeautifulSoup