Advertisement
jsbsan

leerparametros

Oct 10th, 2014
1,022
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. session = requests.Session()
  2.         Jugador = jugador
  3.         Pais = pais
  4.         Marcador = marcador
  5.         if url== '':
  6.             url = 'http://www.marcadorjsbsan.hostinazo.com/marcador.php'
  7.         if jugador == '' and pais == '' and marcador == '':
  8.             #consulta de solo el marcador
  9.             source_code = session.get(url)
  10.         else:
  11.             rutadatos = url + "?jugador=" + Jugador + "&pais=" + Pais+ "&marcador=" + str(Marcador)
  12.             source_code = session.get(rutadatos)
  13.        
  14.         content = html.parse(BytesIO(source_code.content))
  15.         line = content.xpath("//text()")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement