for i in range(2,12): try: # q = \'//* [@id="Content"]/tbody/tr[18]/td/table/tbody/tr/td[\'+str(i)+\']\' #