From e7ac4afb380e177d7f7956c6a28fb2acefad03ef Mon Sep 17 00:00:00 2001
From: Pravesh <cb.en.u4cse16234@cb.students.amrita.edu>
Date: Wed, 6 Mar 2019 13:09:05 +0530
Subject: [PATCH] PERIODICAL LAB 2

---
 CB.EN.U4CSE16234_P2_Q2.py | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 CB.EN.U4CSE16234_P2_Q2.py

diff --git a/CB.EN.U4CSE16234_P2_Q2.py b/CB.EN.U4CSE16234_P2_Q2.py
new file mode 100644
index 0000000..8131b39
--- /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())
+
+
-- 
GitLab