Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # we can grab the website header using this
- # importing the modules
- import requests
- from bs4 import BeautifulSoup
- # target url
- url = 'https://insaneseeds.com'
- # making requests instance
- reqs = requests.get(url)
- # using the BeaitifulSoup module
- soup = BeautifulSoup(reqs.text, 'html.parser')
- # displaying the title
- print("Title of the website is : ")
- for title in soup.find_all('title'):
- print(title.get_text())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement