This repository was archived by the owner on Dec 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Scripts/Web_Scrappers/google_news_(ui_based) Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def fetch_news(link, file_name='custom_news.txt'):
4444 if (file_name == 'custom_news.txt' ):
4545 print ('Your news in ready in "custom_news.txt" file.' )
4646
47- ans = input ("Do you want to fetch latest World News (y/n) ?" )
47+ ans = input ("Do you want to fetch latest World News (y/n) ? " )
4848if (ans == 'y' ):
4949 print ('Fetching World News... This might take a while' )
5050 fetch_news ('https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGx1YlY4U0FtVnVHZ0pKVGlnQVAB?hl=en-IN&gl=IN&ceid=IN%3Aen' , 'world_news.txt' )
@@ -224,9 +224,12 @@ def fetch_news(link, file_name='custom_news.txt'):
224224else :
225225 c1 = False
226226print ('' )
227- if (c1 == True and c2 == True ):
228- print ('Fetching your custom News...' )
229- fetch_news (link = fetch )
230- print ('Thank You' )
227+ if (c1 == True ):
228+ if (c2 == True ):
229+ print ('Fetching your custom News...' )
230+ fetch_news (link = fetch )
231+ print ('Thank You' )
232+ else :
233+ print ('The program will now exit!' )
231234else :
232235 print ('The program will now exit!' )
You can’t perform that action at this time.
0 commit comments