Skip to content

Commit f66c399

Browse files
committed
added the sepetate link for sports section
1 parent 5f81c30 commit f66c399

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Google_News.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ def news():
66
#my_url="https://news.google.com/news/rss"
77
my_url="https://news.google.com/news/rss?ned=in&hl=en-IN"
88
#To open the Given URL
9-
Client=urlopen(my_url)
9+
Client=urlopen(my_url)
10+
s_url ="https://news.google.com/news/headlines/section/topic/SPORTS.en_in/Sports?ned=in&hl=en-IN&gl=IN"
11+
Client=urlopen(s_url)
12+
13+
1014

1115
xml_page=Client.read()
1216
Client.close()
@@ -24,3 +28,4 @@ def news():
2428

2529

2630
news()
31+

0 commit comments

Comments
 (0)