ବ୍ୟବହାରକାରୀ:ShitiBot/ପ୍ରୋଗ୍ରାମ ୨

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import urllib2

urls = ['http://dsalsrv02.uchicago.edu/cgi-bin/philologic/getobject.pl?c.11:761.praharaj','http://dsalsrv02.uchicago.edu/cgi-bin/philologic/getobject.pl?c.11:762.praharaj']

i=0

while 1< len(urls):
    request = urllib2.Request(urls[i])
    handle = urllib2.urlopen(request)
    content = handle.read()
    splitted_page = content.split("<span class=head><or>", 1);
    splitted_page = splitted_page[1].split("</span><table width='95%'>", 1)
    print "\n" + "Downloads_Start:" + "\n\n" + "[[ଶବ୍ଦାର୍ଥ]]:" + "\n\n" + splitted_page[0] +  "\n\n" + "[[ଶ୍ରେଣୀ:ବଟ ତିଆରି ୨]]" + "\n\n" + "Download_End" + "\n\n"
    i+=1