From faee0025dd63ea6b0ef16a01262c2d93953f8575 Mon Sep 17 00:00:00 2001 From: TheVTM Date: Thu, 28 May 2015 21:26:34 -0300 Subject: [PATCH] =?UTF-8?q?Detalhes=20formata=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scrapers/Scouts.py | 6 ++---- scraper.py | 7 +++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Scrapers/Scouts.py b/Scrapers/Scouts.py index 97eb6ea..d46da5a 100644 --- a/Scrapers/Scouts.py +++ b/Scrapers/Scouts.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# 3.0 - # The MIT License (MIT) ## @@ -63,8 +61,8 @@ def ScrapeScouts(LOGIN_EMAIL, LOGIN_SENHA, USER_AGENT): # senha que permitam fazer o login. br.select_form(nr=0) - br.form['login-passaporte'] = LOGIN_EMAIL - br.form['senha-passaporte'] = LOGIN_SENHA + br.form['login-passaporte'] = LOGIN_EMAIL ## CartolaFC Login + br.form['senha-passaporte'] = LOGIN_SENHA ## CartolaFC Senha br.submit() # Download Scouts diff --git a/scraper.py b/scraper.py index b26e85e..0b4139a 100644 --- a/scraper.py +++ b/scraper.py @@ -26,11 +26,10 @@ import os from Scrapers import Scouts - # Consts -LOGIN_EMAIL = os.environ['MORPH_LOGIN_EMAIL'] -LOGIN_SENHA = os.environ['MORPH_LOGIN_SENHA'] +LOGIN_EMAIL = os.environ['MORPH_LOGIN_EMAIL'] ## CartolaFC Login +LOGIN_SENHA = os.environ['MORPH_LOGIN_SENHA'] ## CartolaFC Senha USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36' # Scrape Scouts -Scouts.ScrapeScouts(LOGIN_EMAIL, LOGIN_SENHA, USER_AGENT) +Scouts.ScrapeScouts(LOGIN_EMAIL, LOGIN_SENHA, USER_AGENT) \ No newline at end of file