Skip to content

Commit

Permalink
Detalhes formatação
Browse files Browse the repository at this point in the history
  • Loading branch information
ballomud committed May 29, 2015
1 parent e4fac95 commit faee002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Scrapers/Scouts.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>


# The MIT License (MIT)
##
Expand Down Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions scraper.py
Expand Up @@ -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)

0 comments on commit faee002

Please sign in to comment.