Initialise a Web Scraper with Beautiful Soup

Python

 1|  import requests
 2|  from bs4 import BeautifulSoup
 3|  
 4|  response = requests.get('https://en.wikipedia.org/wiki/FTSE_100_Index')
 5|  parser = BeautifulSoup(response.content, 'html.parser')
Did you find this snippet useful?

Sign up for free to to add this to your code library