Skip to content

Commit 800ff35

Browse files
committed
Fixed bugs
2 parents b493405 + 2bf0ebe commit 800ff35

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# AmritaQPapers
2-
This Python code lets you have a look at the Institutional Repository for previous year question papers, without actually having to go to the website and surf.
3-
PS : Only for Amritians :P
4-
You can find its .exe file here : https://drive.google.com/open?id=1M5xe1IRNF1C0P9LOC5Me7bIUmF1SOwuo
2+
This is a PC version of Amrita Repository App, coded in Python 3. It helps you download previous year question papers in a much easier way.
3+
4+
[![Download AmritaQPapers](https://a.fsdn.com/con/app/sf-download-button)](https://sourceforge.net/projects/amritaqpapers/files/latest/download)

SemPapers.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def year(url):
1414
try:
1515
page = requests.get(url)
1616
soup = BeautifulSoup(page.content,'html.parser')
17-
base_url=url
17+
18+
1819
div=soup.findAll('div', xmlns="http://di.tamu.edu/DRI/1.0/")
1920
ul=div[0].findAll('ul')
2021
li=ul[0].findAll('li')
@@ -45,15 +46,13 @@ def year(url):
4546
except:
4647
print("UNEXPECTED ERROR! :(")
4748
exit()
48-
print("\nBROWSER IS OPENING! PLEASE BE PATIENT :) ")
49+
print("Please wait till the browser opens ! ")
4950
webbrowser.open(url, new=0, autoraise=True)
50-
ch=int(input('\nDo you want to continue ? \nPress 1 for Yes and 0 for No : '))
51+
ch=int(input('Do you want to continue ? \nPress 1 for Yes and 0 for No : '))
5152
if(ch==0):
52-
print("\nThanks for using. Wish you ALL THE BEST for your exams :)")
53-
sleep(3)
5453
exit()
5554
else:
56-
year(base_url)
55+
start()
5756

5857

5958

0 commit comments

Comments
 (0)