How to webscrape with Python

Credit to:

https://medium.com/@thevatsalsaglani/web-scraping-using-python-and-beautifulsoup-2e54e79415d6

https://www.banjocode.com/web-scraping/

We will be using the modules Beautifulsoup4 and Requests

First we need to import both modules:

Python

from bs4 import BeautifulSoup
import requests

We then need to GET the web page we want to scrape using requests:

Python

request = request.get("www.google.co.uk")