Skip to content
Snippets Groups Projects
Commit e7ac4afb authored by Pravesh's avatar Pravesh
Browse files

PERIODICAL LAB 2

parent aaa20d88
No related branches found
No related tags found
No related merge requests found
from bs4 import BeautifulSoup
import requests
page=requests.get("https://gadgets.ndtv.com/mobiles/news/samsung-s10-plus-galaxy-s10e-india-launch-live-stream-12-30pm-ist-price-2003242")
soup=BeautifulSoup(page.content,'html.parser')
headline=soup.find('h1')
print(headline.get_text())
page1=requests.get("https://www.timesnownews.com/technology-science/article/xiaomi-redmi-note-7-alternatives-realme-3-samsung-galaxy-m20-asus-zenfone-max-pro-m2-honor-10-lite-and-motorola-one-power-five-smartphones-you-can/377518")
soup1=BeautifulSoup(page1.content,'html.parser')
headline1=soup1.find('h1')
print(headline1.get_text())
page2=requests.get("https://www.techradar.com/news/august-view-is-an-easily-installed-1440p-smart-doorbell")
soup2=BeautifulSoup(page2.content,'html.parser')
headline2=soup2.find('h1')
print(headline2.get_text())
page3=requests.get("https://www.moneycontrol.com/news/technology/intel-makes-thunderbolt-3-protocol-royalty-free-3611151.html")
soup3=BeautifulSoup(page3.content,'html.parser')
headline3=soup.find('h1')
print(headline3.get_text())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment