Skip to content

Instantly share code, notes, and snippets.

@catslovedata
Created February 19, 2023 18:58
Show Gist options
  • Save catslovedata/ce3f58c705fc7ab47aec44b29c4a000f to your computer and use it in GitHub Desktop.
Save catslovedata/ce3f58c705fc7ab47aec44b29c4a000f to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup
c = requests.get('https://en.wikipedia.org/wiki/List_of_shopping_centres_in_the_United_Kingdom_by_size').content
s = BeautifulSoup(c, 'html.parser')
rows = s.table.find_all('tr')[1:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment