diff --git a/CB.EN.U4CSE16234_P2_Q2.py b/CB.EN.U4CSE16234_P2_Q2.py new file mode 100644 index 0000000000000000000000000000000000000000..8131b393b4845af2bfe77c529a3170d282b55a2f --- /dev/null +++ b/CB.EN.U4CSE16234_P2_Q2.py @@ -0,0 +1,22 @@ +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()) + +