import pywikibot
import requests
from pywikibot import pagegenerators as pg

def getSome(text,some):
  start=text.find('%s:</td>'%some)
  start2=text[start:].find('<td>')
  end=text[start+start2:].find('</td>')
  #print('%s'%text[4+start+start2:start+start2+end])
  if (end>0) and (start2>0) and (end>0):
    return(text[4+start+start2:start+start2+end])
  else:
    return('')
    

def getPosition(text):
  return(getSome(text,'Position'))
def getHeight(text):
  return(getSome(text,'Grösse'))  
def getPOB(text):
  return(getSome(text,'Geburtsort'))
def getDOB(text):
  return(getSome(text,'Geburtsdatum'))  
    
id=100
baseURL='https://www.soccerdonna.de/de/demi-derksen/profil/spieler_%d.html'
f = requests.get((baseURL)%(id))
print('Position: %s' % getPosition(f.text))
print('Place OB: %s' % getPOB(f.text))
print('Height  : %s' % getHeight(f.text))
print('Date o B: %s' % getDOB(f.text))
#print(f.text)
Position: Torwart
Place OB: Recife, Pernambuco <img src="http://www.transfermarkt.de/bilder/flaggen/26.gif" width="16" height="10" alt="-" class="vm" title="Brasilien" />
Height  : 
Date o B: 04.07.1988