def __init__(self, **kwargs):
        '''
        Args:
            **kwargs: projections_url (str)
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        if 'format' in 'kwargs':
            self.format = kwargs['format']
        else:
            self.format = 'standard'

        if 'projections_url' in 'kwargs':
            self.projections_url = kwargs['projections_url']
        else:
            self.projections_url = 'https://fantasyfootballcalculator.com/rankings'

        if 'teams' in 'kwargs':
            self.teams = kwargs['teams']
        else:
            self.teams = '14'

        if 'year' in 'kwargs':
            self.year = kwargs['year']
        else:
            self.year = '2015'
    def __init__(self, **kwargs):
        '''
        Args:
            **kwargs: projections_urls (list)
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        if 'projections_urls' in 'kwargs':
            self.projections_urls = kwargs['projections_urls']
        else:
            self.projections_urls = {
                'qb':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=10&LeagueID=26955',
                'rb1':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=20&LeagueID=26955',
                'rb2':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=20&LeagueID=26955&order_by=FFPts&sort_order=DESC&cur_page=1',
                'wr1':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=30&LeagueID=26955',
                'wr2':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=30&LeagueID=26955&order_by=FFPts&sort_order=DESC&cur_page=1',
                'te':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=40&LeagueID=26955',
                'dst':
                'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=99&LeagueID=26955',
            }
    def __init__(self, **kwargs):
        """
        Args:
            **kwargs: projections_url (str)
        """

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        if "format" in "kwargs":
            self.format = kwargs["format"]
        else:
            self.format = "standard"

        if "pos" in "kwargs":
            self.pos = kwargs["pos"]
        else:
            self.pos = "all"

        if "projections_url" in "kwargs":
            self.projections_url = kwargs["projections_url"]
        else:
            self.projections_url = "https://fantasyfootballcalculator.com/rankings"

        if "teams" in "kwargs":
            self.teams = kwargs["teams"]
        else:
            self.teams = "14"

        if "year" in "kwargs":
            self.year = kwargs["year"]
        else:
            self.year = "2015"
Exemplo n.º 4
0
    def __init__(self, **kwargs):
        '''
        Args:
            **kwargs: projections_url (str)
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        if 'format' in 'kwargs':
            self.format = kwargs['format']
        else:
            self.format = 'standard'

        if 'projections_url' in 'kwargs':
            self.projections_url = kwargs['projections_url']
        else:
            self.projections_url = 'https://fantasyfootballcalculator.com/rankings'

        if 'teams' in 'kwargs':
            self.teams = kwargs['teams']
        else:
            self.teams = '14'

        if 'year' in 'kwargs':
            self.year = kwargs['year']
        else:
            self.year = '2015'
Exemplo n.º 5
0
    def __init__(self, **kwargs):
        # see http://stackoverflow.com/questions/8134444
        EWTScraper.__init__(self, **kwargs)

        self.game_ids = []
        self.logger = logging.getLogger(__name__).addHandler(
            logging.NullHandler())
    def __init__(self, **kwargs):
        '''
        Args:
            **kwargs: projections_url (str)
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        self.players_url = 'http://football.myfantasyleague.com/2015/export?TYPE=players&DETAILS=1'
Exemplo n.º 7
0
    def __init__(self, **kwargs):
        '''
        Args:
            **kwargs: projections_url (str)
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        self.players_url = 'http://football.myfantasyleague.com/2015/export?TYPE=players&DETAILS=1'
    def __init__(self, api_key, positions=['QB', 'RB', 'WR', 'TE'], response_format='json', league_format='standard', **kwargs):
        '''
        Args:
            api_key (str): Must specify API key for successful requests
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        self.api_key = api_key
        self.positions = positions
        self.response_format = response_format
        self.league_format = league_format
Exemplo n.º 9
0
    def __init__(self, **kwargs):
        
        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        if 'adp_url' in 'kwargs':
            self.adp_url = kwargs['adp_url']
        else:
            self.adp_url = 'http://www.fantasypros.com/nfl/adp/overall.php?export=xls'

        if 'projection_url' in 'kwargs':
            self.projection_url = kwargs['projection_url']      
        else:
            self.projection_url = 'http://www.fantasypros.com/nfl/rankings/consensus-cheatsheets.php?export=xls'
Exemplo n.º 10
0
    def __init__(self,
                 api_key,
                 positions=['QB', 'RB', 'WR', 'TE'],
                 response_format='json',
                 league_format='standard',
                 **kwargs):
        '''
        Args:
            api_key (str): Must specify API key for successful requests
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        self.api_key = api_key
        self.positions = positions
        self.response_format = response_format
        self.league_format = league_format
    def __init__(self, **kwargs):
        '''
        Args:
            **kwargs: projections_urls (list)
        '''

        # see http://stackoverflow.com/questions/8134444/python-constructor-of-derived-class
        EWTScraper.__init__(self, **kwargs)

        if 'projections_urls' in 'kwargs':
            self.projections_urls = kwargs['projections_urls']
        else:
            self.projections_urls = {
                'qb': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=10&LeagueID=26955',
                'rb1': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=20&LeagueID=26955',
                'rb2': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=20&LeagueID=26955&order_by=FFPts&sort_order=DESC&cur_page=1',
                'wr1': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=30&LeagueID=26955',
                'wr2': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=30&LeagueID=26955&order_by=FFPts&sort_order=DESC&cur_page=1',
                'te': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=40&LeagueID=26955',
                'dst': 'http://www.fftoday.com/rankings/playerproj.php?Season=2015&PosID=99&LeagueID=26955',
            }
Exemplo n.º 12
0
    def __init__(self, **kwargs):
        # see http://stackoverflow.com/questions/8134444
        EWTScraper.__init__(self, **kwargs)

        if 'logger' in kwargs:
            self.logger = kwargs['logger']
        else:
            self.logger = logging.getLogger(__name__) \
                .addHandler(logging.NullHandler())

        if 'maxindex' in kwargs:
            self.maxindex = kwargs['maxindex']
        else:
            self.maxindex = 400

        if 'projection_urls' in 'kwargs':
            self.projection_urls = kwargs['projection_urls']
        else:
            base_url = 'http://games.espn.go.com/ffl/tools/projections?'
            idx = [0, 40, 80, 120, 160, 200, 240, 280, 320, 360]
            self.projection_urls = [base_url + 'startIndex=' + x for x in idx]
Exemplo n.º 13
0
    def __init__(self, **kwargs):
        # see http://stackoverflow.com/questions/8134444
        EWTScraper.__init__(self, **kwargs)

        self.game_ids = []
        self.logger = logging.getLogger(__name__).addHandler(logging.NullHandler())