Skip to content

Commit b493405

Browse files
committed
Fixed Bugs
1 parent 9c59e66 commit b493405

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

SemPapers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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("\nBROWSER IS OPENING! PLEASE BE PATIENT :) ")
5049
webbrowser.open(url, new=0, autoraise=True)
51-
ch=int(input('Do you want to continue ? \nPress 1 for Yes and 0 for No : '))
50+
ch=int(input('\nDo you want to continue ? \nPress 1 for Yes and 0 for No : '))
5251
if(ch==0):
52+
print("\nThanks 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

0 commit comments

Comments
 (0)