# -*- coding: UTF-8 -*-

import bs4
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen

def news():
         my_url = "https://news.google.com/news/rss?ned=in&hl=en-IN"
         Client = urlopen(my_url)
         s_url = "https://news.google.com/news/headlines/section/topic/SPORTS.en_in/Sports?ned=in&hl=en-IN&gl=IN"
         Client = urlopen(s_url)



         xml_page=Client.read()
         Client.close()


         soup_page = soup(xml_page,"xml")
         news_list = soup_page.findAll("item")

         for news in news_list:
                         print(news.title.text)
                         print(news.link.text)
                         print(news.pubDate.text)
                         print("-"*150)
         n=input()




news()
