Skip to content

Instantly share code, notes, and snippets.

@yask123
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save yask123/2219a7019226005d7e7f to your computer and use it in GitHub Desktop.

Select an option

Save yask123/2219a7019226005d7e7f to your computer and use it in GitHub Desktop.
"""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