ବ୍ୟବହାରକାରୀ:ShitiBot/ପ୍ରୋଗ୍ରାମ ୧
ଦେଖଣା
ଏହି ପ୍ରୋଗ୍ରାମଟି ଇଂରାଜୀ ଉଇକିପିଡିଆରେ ଥିବା ବୈଜ୍ଞାନିକଙ୍କ ଜୀବନୀର ତଥ୍ୟପେଟିରୁ ତଥ୍ୟ ସଂଗ୍ରହ କରି ଓଡ଼ିଆ ଉଇକିରେ ବ୍ୟବହାର ଯୋଗ୍ୟ ଲେଖା ତିଆରି କରିପାରିବ । ସେହି ଲେଖା ଗୁଡ଼ିକୁ pywikpediabot ର pagefromfile.py ବ୍ୟବହାର କରି ଅପଲୋଡ କରାଯାଇପାରିବ । |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import unicodedata
def odianame(t):
t = t.decode('utf-8', errors = 'ignore')
t = unicodedata.normalize('NFKD', t).encode('ascii', 'ignore')
t = t.replace(",", " , ")
t = t.replace("-", " - ")
t = t.replace(" ", " ")
t = t.replace(" ", " ")
t = t.strip()
t = t + " @"
vowels = set(('a','e','i','o','u','r','h','y','A','E','I','O','U','H','R','Y'))
final_odia = ""
p = t.count(' ')
j=0
while j != p+1:
k = t.split()
k = k[j]
r = k + " @"
if r.isupper() == True:
r = r.replace("A", "ଏ.")
r = r.replace("B", "ବି.")
r = r.replace("C", "ସି.")
r = r.replace("D", "ଡ଼ି.")
r = r.replace("E", "ଇ.")
r = r.replace("F", "ଏଫ୍.")
r = r.replace("G", "ଜି.")
r = r.replace("H", "ଏଚ୍.")
r = r.replace("I", "ଆଇ.")
r = r.replace("J", "ଜେ.")
r = r.replace("K", "କେ.")
r = r.replace("L", "ଏଲ୍.")
r = r.replace("M", "ଏମ୍.")
r = r.replace("N", "ଏନ୍.")
r = r.replace("O", "ଓ.")
r = r.replace("P", "ପି.")
r = r.replace("Q", "କ୍ୟୁ.")
r = r.replace("R", "ଆର୍.")
r = r.replace("S", "ଏସ୍.")
r = r.replace("T", "ଟି.")
r = r.replace("U", "ୟୁ.")
r = r.replace("V", "ଭି.")
r = r.replace("W", "ଡବ୍ଲ୍ୟୁ.")
r = r.replace("X", "ଏକ୍ସ.")
r = r.replace("Y", "ୱାଇ.")
r = r.replace("Z", "ଜେଡ୍.")
capital_odia = r
r = "@"
else:
capital_odia = ""
n = sum(letter in vowels for letter in r)
d = ""
s = ""
semifinal_odia = ""
m=0
while m != n+1:
r = r.replace("A", "a")
r = r.replace("E", "e")
r = r.replace("I", "i")
r = r.replace("O", "o")
r = r.replace("U", "u")
r = r.replace("H", "h")
r = r.replace("R", "r")
r = r.replace("Y", "y")
r = r.replace("a", "a ")
r = r.replace("e", "e ")
r = r.replace("i", "i ")
r = r.replace("o", "o ")
r = r.replace("u", "u ")
r = r.replace("h", "h ")
r = r.replace("r", "r ")
r = r.replace("y", "y ")
q = r.split()
if len(q[m]) > 3:
g = q[m]
c = g[1:-1]
c = '‌'.join(c[i:i+2] for i in xrange(0, len(c), 2))
c = g[:1] + "‌" + c + g[-1:]
d = d + c
else:
d = d + q[m]
if m == n:
s = d
s = s.replace("A", "a")
s = s.replace("B", "b")
s = s.replace("C", "c")
s = s.replace("D", "d")
s = s.replace("E", "e")
s = s.replace("F", "f")
s = s.replace("G", "g")
s = s.replace("H", "h")
s = s.replace("I", "i")
s = s.replace("J", "j")
s = s.replace("K", "k")
s = s.replace("L", "l")
s = s.replace("M", "m")
s = s.replace("N", "n")
s = s.replace("O", "o")
s = s.replace("P", "p")
s = s.replace("Q", "k")
s = s.replace("R", "r")
s = s.replace("S", "s")
s = s.replace("T", "t")
s = s.replace("U", "u")
s = s.replace("V", "v")
s = s.replace("W", "w")
s = s.replace("X", "x")
s = s.replace("Y", "y")
s = s.replace("Z", "z")
s = s.replace("physics", "ଫିଜିକ୍ସ")
s = s.replace("modern", "ମଡର୍ଣ୍ଣ")
s = s.replace("table", "ଟେବୁଲ")
s = s.replace("@", "")
s = s.strip()
if s[:2] == "re" and (( s[:3][-1:] == "a" or s[:3][-1:] != "e" or s[:3][-1:] == "i" or s[:3][-1:] == "o" or s[:3][-1:] == "u" or s[:3][-1:] == "y" ) or ( s[:4][-1:] == "a" or s[:4][-1:] == "e" or s[:4][-1:] == "i" or s[:4][-1:] == "o" or s[:4][-1:] == "u" )):
if s[:3][-1:] == "a" and ( s[:4][-2:] == "ch" or s[:4][-1:] == "d" or s[:4][-1:] == "m" or s[:4][-1:] == "p" ):
s = s.replace(s, "re"+s[2:])
else:
s = s.replace(s, "ରି"+s[2:])
s = s.replace("search", "ସର୍ଚ୍")
if s[-2:] == "ge":
s = s.replace(s, s[:-2]+"je")
s = s.replace("geo", "ଜିଓ")
if s[:2] == "ge":
s = s.replace(s, "ଜ"+s[2:])
if s[:2] == "au":
s = s.replace(s, "ଅ"+s[2:])
if "earn" in s:
s = s.replace("earn", "ଅrn")
if "eart" in s:
s = s.replace("eart", "ଅrt")
if "ear" in s:
s = s.replace("ear", "iଅr")
if s[:3] == "eng" or s[:10] == "en‌g" :
if s[:4][-1:] != "a" and s[:4][-1:] != "e" and s[:4][-1:] != "o" and s[:4][-1:] != "u":
s = s.replace("en‌g", "eng")
s = s.replace(s, "ing"+s[3:])
if s[:3] == "eve" and s[:4] != "ever":
s = s.replace(s, "ଇve"+s[3:])
if s[:2] == "or":
s = s.replace(s, "ar"+s[2:])
if s == "on":
s = s.replace(s, "ଅn")
if s == "the":
s = s.replace(s, "ଦି")
if s == "and":
s = s.replace(s, "ଆnd")
if s == "thus":
s = s.replace(s, "ଦs")
if s == "than":
s = s.replace(s, "ଦାn")
if "then" in s[:4] or "there" in s[:5] or "them" in s[:4] or "their" in s[:5]:
s = s.replace("the", "ଦେ")
if s[:2] == "up":
s = s.replace(s, "ଅp"+s[2:])
if s[:1] == "x":
s = s.replace(s, "j"+s[1:])
if s[:2] == "of":
s = s.replace(s, "ଅf"+s[2:])
if s[:2] == "ox":
if s[:3][-1:] == "a" or s[:3][-1:] == "e" or s[:3][-1:] == "i" or s[:3][-1:] == "o" or s[:3][-1:] == "u" or s[:3][-1:] == "y":
s = s.replace(s, "ଅx"+s[2:])
else:
s = s.replace(s, "ଅx‌"+s[2:])
if s[:3] == "uni":
s = s.replace(s, "ୟୁni"+s[3:])
if s[:3] == "bio":
s = s.replace(s, "baio"+s[3:])
if s[-3:] == "ies":
s = s.replace(s, s[:-3]+"ys")
if s[-4:] == "stan":
s = s.replace(s, s[:-4]+"ସ୍ତାନ୍")
if s[-5:] == "stani":
s = s.replace(s, s[:-5]+"ସ୍ତାନୀ")
if s[:3] != "ind":
s = s.replace("ind", "aଇnd")
if s[:3] == "pun":
s = s.replace(s, "p$n"+s[3:])
if s[:3] == "cha":
s = s.replace(s, "ଚ୍a"+s[3:])
if s[:2] == "bu":
s = s.replace(s, "b$"+s[2:])
s = s.replace("q", "k")
s = s.replace("ow", "o")
s = s.replace("aw", "$ଽ")
s = s.replace("ew", "iu")
s = s.replace("ck", "k")
s = s.replace("logy", "loji")
s = s.replace("ver", "ଭr")
s = s.replace("ce", "se")
s = s.replace("ford", "ଫୋrd")
s = s.replace("for", "ଫr")
s = s.replace("eo", "io")
s = s.replace("tz", "j")
s = s.replace("ation", "eସn")
s = s.replace("tion", "ସn")
s = s.replace("gi", "ji")
s = s.replace("oun", "aun")
s = s.replace("uch", "$ଚ୍")
s = s.replace("utch", "$ଚ୍")
s = s.replace("atch", "yaatch")
s = s.replace("tch", "ଚ୍")
'''if s[-2:] == "ch":
s = s.replace(s, s[:-2]+"ଚ୍")
if s[-5:] == "ching":
s = s.replace(s, s[:-5]+"ଚିଙ୍ଗ୍")'''
s = s.replace("ai", "e")
if "ee" not in s:
if 'e' in s and 'a' in s:
final = ""
s = s+"@"
x = s.count('e')
yy = 0
while yy < x+1:
prefinal = s.replace("e", "e ")
prefinal = prefinal.split()
with_e = prefinal[yy]
if 'e' in prefinal[yy] and 'a' in prefinal[yy]:
if with_e[-3:][:1] == "a":
with_e = with_e.replace(with_e, with_e[:-3]+"e"+with_e[-2:])
if with_e[-2:] == "ce":
with_e = with_e.replace(with_e, with_e[:-2]+"s"+"‌")
if with_e[-2:] == "ge":
with_e = with_e.replace(with_e, with_e[:-2]+"j"+"‌")
if with_e[-1:] == "e":
if prefinal[yy+1][:1] != "r":
with_e = with_e.replace(with_e, with_e[:-1]+"‌")
yy+=1
final = final + with_e
final = final.replace('@', '')
s = final
if "ee" not in s:
if 'e' in s and 'i' in s:
final = ""
s = s+"@"
x = s.count('e')
yy = 0
while yy < x+1:
prefinal = s.replace("e", "e ")
prefinal = prefinal.split()
with_e = prefinal[yy]
if 'e' in prefinal[yy] and 'i' in prefinal[yy]:
if with_e[-3:][:1] == "i":
if with_e[-4:][:1] == "a" or ( final[-1:] == "e" and with_e[-4:][:1] == "" ) or with_e[-4:][:1] == "o" or with_e[-4:][:1] == "u" or with_e[-4:][:1] == "i" or with_e[-4:][:1] == "y":
with_e = with_e.replace(with_e, with_e[:-3]+"i"+with_e[-2:])
else:
with_e = with_e.replace(with_e, with_e[:-3]+"ai"+with_e[-2:])
if with_e[-4:] == "aise" and with_e[-6:][:1] == "o":
with_e = with_e.replace(with_e, with_e[:-4]+"is"+"‌")
if with_e[-2:] == "ce":
with_e = with_e.replace(with_e, with_e[:-2]+"s"+"‌")
if with_e[-2:] == "ge":
with_e = with_e.replace(with_e, with_e[:-2]+"j"+"‌")
if with_e[-1:] == "e":
if prefinal[yy+1][:1] != "r":
with_e = with_e.replace(with_e, with_e[:-1]+"‌")
yy+=1
final = final + with_e
final = final.replace('@', '')
s = final
s = s.replace("tt", "t")
s = s.replace("ll", "l")
s = s.replace("gg", "g")
s = s.replace("ss", "s")
s = s.replace("hh", "h")
if 'er' in s and 'eer' not in s:
if 'era' in s or 'ere' in s or 'eri' in s or 'ero' in s or 'eru' in s or 'ery' in s:
s = s.replace("er", "%r")
if s[-2:] != "ee":
if s[-1:] == "e":
s = s.replace(s, s[:-1])
if s[:4][-3:] == "our":
s = s.replace(s, s[:1]+"or"+s[4:])
s = s.replace("ea", "i")
s = s.replace("dg", "j")
s = s.replace("dj", "j")
s = s.replace("ou", "au")
s = s.replace("oa", "o")
s = s.replace("igh", "aଇ")
s = s.replace("cy", "saଇ")
if s[:1] == "a":
s = s.replace(s, "ଆ"+s[1:])
if s[-1:] == "a":
s = s.replace(s, s[:-1]+"aa")
s = s.replace("nth", "ଣ୍ଠ୍")
s = s.replace("nt", "ଣ୍ଟ୍")
s = s.replace("ndh", "ଣ୍ଢ୍")
s = s.replace("nd", "ଣ୍ଡ୍")
s = s.replace("sth", "ଷ୍ଠ୍")
s = s.replace("st", "ଷ୍ଟ୍")
s = s.replace("nkh", "ଙ୍ଖ୍")
s = s.replace("nch", "ଙ୍ଖ୍")
s = s.replace("nk", "ଙ୍କ୍")
s = s.replace("nc", "ଙ୍କ୍")
s = s.replace("ngh", "ଙ୍ଘ୍")
s = s.replace("ng", "ଙ୍ଗ୍")
s = s.replace("njh", "ଞ୍ଝ୍")
s = s.replace("nj", "ଞ୍ଜ୍")
s = s.replace("x", "ks")
s = s.replace("kh", "ଖ୍")
s = s.replace("k", "କ୍")
s = s.replace("ch", "କ୍")
s = s.replace("c", "କ୍")
s = s.replace("gh", "ଘ୍")
s = s.replace("g", "ଗ୍")
s = s.replace("jh", "ଝ୍")
s = s.replace("j", "ଜ୍")
s = s.replace("z", "ଜ୍")
s = s.replace("th", "ଥ୍")
s = s.replace("t", "ଟ୍")
s = s.replace("dh", "ଢ୍")
s = s.replace("d", "ଡ୍")
s = s.replace("n", "ନ୍")
s = s.replace("f", "ଫ୍")
s = s.replace("ph", "ଫ୍")
s = s.replace("p", "ପ୍")
s = s.replace("v", "ଭ୍")
s = s.replace("bh", "ଭ୍")
s = s.replace("b", "ବ୍")
s = s.replace("m", "ମ୍")
s = s.replace("sh", "ଶ୍")
s = s.replace("s", "ସ୍")
if s[-1:] == "h":
s = s.replace(s, s[:-1]+"ଃ")
if s[:1] == "h":
s = s.replace(s, "ହ୍"+s[1:])
s = s.replace("h", "‌ହ୍")
s = s.replace("l", "ଲ୍")
s = s.replace("w", "ୱ୍")
s = s.replace("r", "ର୍")
s = s.replace("୍ee", "ୀ")
s = s.replace("୍eର୍", "ର୍")
s = s.replace("%", "e")
s = s.replace("yaa", "ୟା")
s = s.replace("ya", "ୟ")
s = s.replace("୍y", "ୀ")
s = s.replace("y", "ୟ୍")
s = s.replace("୍ii", "ୀ")
s = s.replace("୍aa", "ା")
s = s.replace("୍a", "ା")
s = s.replace("୍e", "େ")
s = s.replace("୍i", "ି")
s = s.replace("୍u", "ୁ")
s = s.replace("୍oo", "ୁ")
s = s.replace("୍o", "ୋ")
s = s.replace("aa", "ଆ")
s = s.replace("a", "ଅ")
s = s.replace("ee", "ଈ")
s = s.replace("e", "ଏ")
s = s.replace("i", "ଇ")
s = s.replace("u", "ଉ")
s = s.replace("o", "ଓ")
s = s.replace("@", "")
s = s.replace("୍$", "")
semifinal_odia = semifinal_odia + capital_odia + s
semifinal_odia = semifinal_odia.strip()
m+=1
j+=1
final_odia = final_odia + semifinal_odia + " "
final_odia = final_odia.replace("‌‌", "‌")
final_odia = final_odia.replace(" ‌", " ")
final_odia = final_odia.replace("‌ ", " ")
final_odia = final_odia.replace(" ,", ", ")
final_odia = final_odia.replace(" -", "-")
final_odia = final_odia.replace("- ", "-")
final_odia = final_odia.replace("@@", "")
final_odia = final_odia.replace("..", ".")
final_odia = final_odia.replace("@", "")
final_odia = final_odia.replace(" ", " ")
final_odia = final_odia.replace(" ", " ")
final_odia = final_odia.strip()
return final_odia
#end of translate function now import begins
urls = ["https://en.wikipedia.org/w/index.php?title=Aage_Bohr&action=edit&editintro=Template:BLP_editintro","https://en.wikipedia.org/w/index.php?title=Aaldert_Wapstra&action=edit&editintro=Template:BLP_editintro","https://en.wikipedia.org/w/index.php?title=Étienne-Louis_Malus&action=edit&editintro=Template:BLP_editintro"]
i=0
j=1
while 1< len(urls):
request = urllib2.Request(urls[i])
handle = urllib2.urlopen(request)
content = handle.read()
if "Infobox" in content:
line = urls[i]
line = line.replace("https://en.wikipedia.org/w/index.php?title=","'''")
line = line.replace("&action=edit&editintro=Template:BLP_editintro","'''")
line = line.replace("_"," ")
print "\n\n" + "Download_start" + "\n\n" + line.decode('utf-8', errors = 'ignore')
splitted_page = content.split("{{Infobox", 1);
splitted_page = splitted_page[1].split("'''", 1)
splitted_page1 = splitted_page[0].replace("<","<")
print "\n\n" + "{{Infobox" + splitted_page1.decode('utf-8', errors = 'ignore') + "\n\n" #this line prints infobox
splitted_page1 = splitted_page1.replace("{{·}}"," , ")
print "\n" + "<p>" + "\n"
if "[[File:" in splitted_page1: #adds category for manual review
monkey1 = "[[ଶ୍ରେଣୀ:ପରଖିନେବେ ୨]]"
else:
monkey1 = ""
k=0
while k<50:
if "(" in splitted_page1:
stew = splitted_page1.split("(", 1)
stew = stew[1].split(")", 1)
stew = "(" + stew[0] + ")"
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
k =51
k=0
while k<50:
if "<!--" in splitted_page1:
stew = splitted_page1.split("<!--", 1)
stew = stew[1].split("-->", 1)
stew = "<!--" + stew[0] + "-->"
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
k =51
k=0
while k<50:
if "<ref name" in splitted_page1:
stew = splitted_page1.split("<ref name", 1)
stew = stew[1].split("/>", 1)
stew = "<ref name" + stew[0] + "/>"
if "</ref>" in stew:
stew = splitted_page1.split("<ref name", 1)
stew = stew[1].split("</ref>", 1)
stew = "<ref name" + stew[0] + "</ref>"
splitted_page1 = splitted_page1.replace(stew, "")
else:
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
k =51
k=0
while k<50:
if "<ref>" in splitted_page1:
stew = splitted_page1.split("<ref>", 1)
stew = stew[1].split("</ref>", 1)
stew = "<ref>" + stew[0] + "</ref>"
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
k =51
k=0
while k<50:
if "[[" in splitted_page1:
stew = splitted_page1.split("[[", 1)
stew = stew[1].split("|", 1)
stew = "[[" + stew[0] + "|"
if "]]" in stew:
stew = splitted_page1.split("[[", 1)
stew = stew[1].split("]]", 1)
stew1 = "[[" + stew[0] + "]]"
stew2 = "Sipun" + stew[0] + "Sipun2"
splitted_page1 = splitted_page1.replace(stew1, stew2)
else:
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
k =51
splitted_page1 = splitted_page1.replace("Sipun2", "")
splitted_page1 = splitted_page1.replace("Sipun", "")
splitted_page1 = splitted_page1.replace("[[", "")
splitted_page1 = splitted_page1.replace("]]", "")
k=0
while k<50:
if "{{" in splitted_page1:
stew = splitted_page1.split("{{", 1)
stew = stew[1].split("|", 1)
stew = "{{" + stew[0] + "|"
if "}}" in stew:
stew = splitted_page1.split("{{", 1)
stew = stew[1].split("}}", 1)
stew = "{{" + stew[0] + "}}"
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
splitted_page1 = splitted_page1.replace(stew, "@@ ")
stew = splitted_page1.split("@@", 1)
stew = stew[1].split("}}", 1)
stew1 = "@@" + stew[0] + "}}"
if "{{" in stew1:
k+=1
else:
stew2 = stew[0].replace("|", ", ")
splitted_page1 = splitted_page1.replace(stew1, stew2)
k+=1
elif "@@" in splitted_page1:
stew = splitted_page1.split("@@", 1)
stew = stew[1].split("}}", 1)
stew1 = "@@" + stew[0] + "}}"
stew2 = stew[0].replace("|", ", ")
splitted_page1 = splitted_page1.replace(stew1, stew2)
k+=1
else:
k =51
splitted_page1 = splitted_page1.replace("{{", "")
splitted_page1 = splitted_page1.replace("}}", " | ") #replace " | " with "" if }} remains in splitted_page1
splitted_page1 = splitted_page1.replace("<br>", ", ")
splitted_page1 = splitted_page1.replace("<br/>", ", ")
splitted_page1 = splitted_page1.replace("<br />", ", ")
k=0
while k<50:
if "<" in splitted_page1:
stew = splitted_page1.split("<", 1)
stew = stew[1].split(">", 1)
stew = "<" + stew[0] + ">"
splitted_page1 = splitted_page1.replace(stew, "")
k+=1
else:
k =51
splitted_page1 = splitted_page1.replace("title=", " ") #some replace code may not require always
splitted_page1 = splitted_page1.replace("*", ", ")
splitted_page1 = splitted_page1.replace(" ", "@")
splitted_page1 = splitted_page1.replace("@@", "@")
splitted_page1 = splitted_page1.replace("@", " ")
splitted_page1 = splitted_page1.replace(" ", " ")
splitted_page1 = splitted_page1.replace(",,", ", ")
splitted_page1 = splitted_page1.replace(", ,", ", ")
splitted_page1 = splitted_page1.replace(" ,", ", ")
splitted_page1 = splitted_page1.replace(" and,", " and ")
splitted_page1 = splitted_page1.replace("nowrap", "")
splitted_page1 = splitted_page1.replace("class=", "")
splitted_page1 = splitted_page1.replace("(", "")
splitted_page1 = splitted_page1.replace(")", "")
#splitted_page1 = splitted_page1 + "|" #meant to avoid error at end parameter
#print splitted_page1 #meant to test above codes
print "{{PAGENAME}} ଜଣେ [[ପଦାର୍ଥ ବିଜ୍ଞାନୀ]] ଥିଲେ ।"
if "birth_name" in splitted_page1:
name = splitted_page1.split("birth_name", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ତାଙ୍କ ପୁରା ନାମ " + odianame(name[1]) + " ଅଟେ ।"
print line
if "fullname" in splitted_page1:
name = splitted_page1.split("fullname", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ତାଙ୍କ ପୁରା ନାମ " + odianame(name[1]) + " ଅଟେ ।"
print line
if "other_name" in splitted_page1:
name = splitted_page1.split("other_name", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ତାଙ୍କର ଅନ୍ୟ ନାମ ଅଟେ ।"
print line
if "birth_place" in splitted_page1:
name = splitted_page1.split("birth_place", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + "‌ରେ ଜନ୍ମ ହେଇଥିଲେ ।"
print line
if "death_place" in splitted_page1:
name = splitted_page1.split("death_place", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ଠାରେ ତାଙ୍କର ମୃତ୍ୟୁ ହେଇଥିଲା ।"
print line
if "citizenship" in splitted_page1:
name = splitted_page1.split("citizenship", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ନାଗରିକ ଅଟନ୍ତି ।"
print line
if "nationality" in splitted_page1:
name = splitted_page1.split("nationality", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ନାଗରିକ ଅଟନ୍ତି ।"
print line
if "ethnicity" in splitted_page1:
name = splitted_page1.split("ethnicity", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ଅଞ୍ଚଳର ଅଧିବାସୀ ଅଟନ୍ତି ।"
print line
if "region" in splitted_page1:
name = splitted_page1.split("region", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ଅଞ୍ଚଳର ଅଧିବାସୀ ଅଟନ୍ତି ।"
print line
if "era" in splitted_page1:
name = splitted_page1.split("era", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ସମୟର ବ୍ୟକ୍ତି ଅଟନ୍ତି ।"
print line
if "resting_place" in splitted_page1:
name = splitted_page1.split("resting_place", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + "‌ରେ ବାସ କରୁଥିଲେ ।"
print line
if "residence" in splitted_page1:
name = splitted_page1.split("residence", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + "‌ରେ ବାସ କରୁଥିଲେ ।"
print line
if "occupation" in splitted_page1:
name = splitted_page1.split("occupation", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ଅଟନ୍ତି ।"
print line
if "field" in splitted_page1:
name = splitted_page1.split("field", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ବିଷୟରେ ଗବେଷଣା କରିଛନ୍ତି ।"
print line
if "main_interest" in splitted_page1:
name = splitted_page1.split("main_interest", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ବିଷୟ ପ୍ରତି ତାଙ୍କର ଆଗ୍ରହ ଥିଲା ।"
print line
if "workplace" in splitted_page1:
name = splitted_page1.split("workplace", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ରେ ସେ କାମ କରୁଥିଲେ ।"
print line
if "work_institution" in splitted_page1:
name = splitted_page1.split("work_institution", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ରେ ସେ କାମ କରୁଥିଲେ ।"
print line
if "employer" in splitted_page1:
name = splitted_page1.split("employer", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ରେ ସେ କାମ କରୁଥିଲେ ।"
print line
if "alma_mater" in splitted_page1:
name = splitted_page1.split("alma_mater", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ରେ ସେ ଶିକ୍ଷା ଗ୍ରହଣ କରିଥିଲେ ।"
print line
if "education" in splitted_page1:
name = splitted_page1.split("education", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ରେ ସେ ଶିକ୍ଷା ଗ୍ରହଣ କରିଥିଲେ ।"
print line
if "notable_student" in splitted_page1:
name = splitted_page1.split("notable_student", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ପ୍ରଭୃତି ତାଙ୍କର କିଛି ପ୍ରସିଦ୍ଧ ଛାତ୍ର ଅଟନ୍ତି ।"
print line
if "notable_work" in splitted_page1:
name = splitted_page1.split("notable_work", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ପାଇଁ ସେ ଜଣାଶୁଣା ।"
print line
if "notable_idea" in splitted_page1:
name = splitted_page1.split("notable_idea", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ପାଇଁ ସେ ଜଣାଶୁଣା ।"
print line
if "major_work" in splitted_page1:
name = splitted_page1.split("major_work", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ତାଙ୍କର କିଛି ଗୁରୁତ୍ତ୍ୱପୂର୍ଣ୍ଣ ଅବଦାନ ଅଟେ ।"
print line
if "known_for" in splitted_page1:
name = splitted_page1.split("known_for", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ପାଇଁ ସେ ଜଣାଶୁଣା ।"
print line
if "influences" in splitted_page1:
name = splitted_page1.split("influences", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ଦ୍ଵାରା ସେ ବହୁତ ପ୍ରଭାବିତ ହୋଇଥିଲେ ।"
print line
if "influenced" in splitted_page1:
name = splitted_page1.split("influenced", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ଙ୍କ ଉପରେ {{PAGENAME}}ଙ୍କ ବହୁତ ପ୍ରଭାବ ପକାଇଥିଲେ ।"
print line
if "award" in splitted_page1:
name = splitted_page1.split("award", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ପୁରସ୍କାର ପାଇଥିଲେ ।"
print line
if "prize" in splitted_page1:
name = splitted_page1.split("prize", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "ସେ " + odianame(name[1]) + " ପୁରସ୍କାର ପାଇଥିଲେ ।"
print line
if "spouse" in splitted_page1:
name = splitted_page1.split("spouse", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ଙ୍କୁ ସେ ବିବାହ କରିଥିଲେ ।"
print line
if "partner" in splitted_page1:
name = splitted_page1.split("partner", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + "‌ଙ୍କୁ ସେ ବିବାହ କରିଥିଲେ ।"
print line
if "relative" in splitted_page1:
name = splitted_page1.split("relative", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ତାଙ୍କର ସମ୍ପର୍କୀୟ ଅଟନ୍ତି ।"
print line
if "children" in splitted_page1:
name = splitted_page1.split("children", 1)
name = name[1].split("|", 1)
if "=" in name[0]:
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ତାଙ୍କର ସନ୍ତାନ ଅଟନ୍ତି ।"
print line
if "successor" in splitted_page1:
name = splitted_page1.split("successor", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = odianame(name[1]) + " ତାଙ୍କର ଉତ୍ତରାଧିକାରୀ ଅଟନ୍ତି ।"
print line
if "networth" in splitted_page1:
name = splitted_page1.split("networth", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "{{PAGENAME}}" + odianame(name[1]) + " ସମ୍ପତ୍ତିର ଅଧିକାରୀ ଅଟନ୍ତି ।"
print line
if "net_worth" in splitted_page1:
name = splitted_page1.split("net_worth", 1)
name = name[1].split("|", 1)
name = name[0].split("=", 1)
if len(name[1]) > 4:
line = "{{PAGENAME}}" + odianame(name[1]) + " ସମ୍ପତ୍ତିର ଅଧିକାରୀ ଅଟନ୍ତି ।"
print line
i+=1
print "</p>" + "\n" + "== ଜୀବନୀ ==" + "\n" + "=== ପ୍ରାରମ୍ଭିକ ଜୀବନ ===" + "\n" + "=== ଶିକ୍ଷା ===" + "\n" + "== ଗବେଷଣା ==" + "\n" + "== ସମ୍ମାନ ==" + "\n" + "== ଆଧାର ==" + "\n" + "{{ଆଧାର}}" + "\n\n" + "[[ଶ୍ରେଣୀ:ପଦାର୍ଥ ବିଜ୍ଞାନୀ]]" + "\n\n" + "[[ଶ୍ରେଣୀ:ବଟ ଦ୍ଵାରା ତିଆରି ଜୀବନୀ]]" + monkey1 + "\n\n" + "Download_end" + "\n\n"
else:
print "skip", j
print "done", i
j+=1
i+=1