Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- session = requests.Session()
- Jugador = jugador
- Pais = pais
- Marcador = marcador
- if url== '':
- url = 'http://www.marcadorjsbsan.hostinazo.com/marcador.php'
- if jugador == '' and pais == '' and marcador == '':
- #consulta de solo el marcador
- source_code = session.get(url)
- else:
- rutadatos = url + "?jugador=" + Jugador + "&pais=" + Pais+ "&marcador=" + str(Marcador)
- source_code = session.get(rutadatos)
- content = html.parse(BytesIO(source_code.content))
- line = content.xpath("//text()")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement