File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ def year(url):
1414 try :
1515 page = requests .get (url )
1616 soup = BeautifulSoup (page .content ,'html.parser' )
17-
18-
17+ base_url = url
1918 div = soup .findAll ('div' , xmlns = "http://di.tamu.edu/DRI/1.0/" )
2019 ul = div [0 ].findAll ('ul' )
2120 li = ul [0 ].findAll ('li' )
@@ -46,13 +45,15 @@ def year(url):
4645 except :
4746 print ("UNEXPECTED ERROR! :(" )
4847 exit ()
49- print ("Please wait till the browser opens ! " )
48+ print ("\n BROWSER IS OPENING! PLEASE BE PATIENT :) " )
5049 webbrowser .open (url , new = 0 , autoraise = True )
51- ch = int (input ('Do you want to continue ? \n Press 1 for Yes and 0 for No : ' ))
50+ ch = int (input ('\n Do you want to continue ? \n Press 1 for Yes and 0 for No : ' ))
5251 if (ch == 0 ):
52+ print ("\n Thanks for using. Wish you ALL THE BEST for your exams :)" )
53+ sleep (3 )
5354 exit ()
5455 else :
55- start ( )
56+ year ( base_url )
5657
5758
5859
You can’t perform that action at this time.
0 commit comments