Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkumaar23 committed Sep 3, 2018
2 parents b493405 + 2bf0ebe commit 800ff35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AmritaQPapers
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.
PS : Only for Amritians :P
You can find its .exe file here : https://drive.google.com/open?id=1M5xe1IRNF1C0P9LOC5Me7bIUmF1SOwuo
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.

[![Download AmritaQPapers](https://a.fsdn.com/con/app/sf-download-button)](https://sourceforge.net/projects/amritaqpapers/files/latest/download)
11 changes: 5 additions & 6 deletions SemPapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def year(url):
try:
page = requests.get(url)
soup = BeautifulSoup(page.content,'html.parser')
base_url=url


div=soup.findAll('div', xmlns="http://di.tamu.edu/DRI/1.0/")
ul=div[0].findAll('ul')
li=ul[0].findAll('li')
Expand Down Expand Up @@ -45,15 +46,13 @@ def year(url):
except:
print("UNEXPECTED ERROR! :(")
exit()
print("\nBROWSER IS OPENING! PLEASE BE PATIENT :) ")
print("Please wait till the browser opens ! ")
webbrowser.open(url, new=0, autoraise=True)
ch=int(input('\nDo you want to continue ? \nPress 1 for Yes and 0 for No : '))
ch=int(input('Do you want to continue ? \nPress 1 for Yes and 0 for No : '))
if(ch==0):
print("\nThanks for using. Wish you ALL THE BEST for your exams :)")
sleep(3)
exit()
else:
year(base_url)
start()



Expand Down

0 comments on commit 800ff35

Please sign in to comment.