Commit
•
8567825
1
Parent(s):
f899b3b
Update news_extractor/news_extractor.py
Browse files
news_extractor/news_extractor.py
CHANGED
@@ -61,6 +61,8 @@ def src_parse(rss):
|
|
61 |
"""
|
62 |
if rss.find('ndtvprofit') >= 0:
|
63 |
rss = 'ndtv profit'
|
|
|
|
|
64 |
rss = rss.replace("https://www.", "")
|
65 |
rss = rss.split("/")
|
66 |
return rss[0]
|
|
|
61 |
"""
|
62 |
if rss.find('ndtvprofit') >= 0:
|
63 |
rss = 'ndtv profit'
|
64 |
+
if rss.find('ndtv') >= 0:
|
65 |
+
rss = 'ndtv'
|
66 |
rss = rss.replace("https://www.", "")
|
67 |
rss = rss.split("/")
|
68 |
return rss[0]
|