Advertisement
alperiox

bs4 wikipedia 1

Dec 15th, 2022 (edited)
972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. # load the required packages
  2. from bs4 import BeautifulSoup
  3. # we need a module to connect to websites, you can also use built-in urrlib module.
  4. import requests
  5.  
  6.  
  7. url = "https://en.wikipedia.org/wiki/CSS_Baltic"
  8. # get the website data
  9. response = requests.get(url)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement