Last active
August 29, 2015 14:12
-
-
Save yask123/2219a7019226005d7e7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Forked from here : https://github.com/yask123/ipu_result""" | |
| import os | |
| from urllib.request import urlopen | |
| data ='' | |
| link='' | |
| print ('Running on feature 1 ') | |
| for line in urlopen('http://www.du.ac.in/du/index.php?page=students-welfare'): | |
| data = data+str(line) | |
| run = True | |
| start=0 | |
| while(run): | |
| try : | |
| branch = input('What branch ?') | |
| flag = 0 | |
| if(data.find('2015')): | |
| flag+=1; | |
| if flag: | |
| print ('Voila!') | |
| print ('Your result declared , Generating Link :') | |
| break | |
| else: | |
| print('Not yet declared.') | |
| break | |
| except: | |
| print ('Result Not yet Declared') | |
| break | |
| """print('Starting Automatic Download , Please wait while Download finishes.') | |
| command='wget '+'http://ggsipuresults.nic.in/ipu/results/'+data[start_search_pdf:end_search_pdf] | |
| os.system(command)""" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment