Skip to main content

A package to scrape linestarapp.com daily fantasy sports ownership data

Project description

Linestar Scrape

Goals

The goal of this project is to provide a person with a standardized format for getting linestar ownership data so that it can be used for better understanding daily fantasy competitions

Example: https://www.linestarapp.com/Ownership/Sport/NBA/Site/FanDuel/PID/420

In order to scrape this page, lots of tedious work would have to be done in order to pull data from this site that could only be used for a specific use case. Why not make a package that can be used by everyone? This page contains valueable information to fantasy players and can be used for many DFS data science applications.

Installation

pip install linestar-scrape

  • Be sure to update often to get the latest mapping from human datetime to linestar date id

Methods

fanduel_nba_own_date(date)

Inputs:

  • Python datetime

Output: Linestar Page Data Object containing Linestar Data For That Date

fanduel_nba_own_date_range(date1, date2)

Inputs:

  • date1 = Python datetime for first date
  • date2 = Python datetime for second date

Output: Linestar Map with Date String (YYYY-MM-DD) being the key and a Linestar Page Data Object being a value for inclusive range of dates

Linestar Objects

Linestar Page Data

Object Name: LinestarPageData

Members

  • date
  • competitions (array of LinestarCompeition)
  • url (link to url scraped)

Linestar Competitions

Object Name: LinestarCompeition

Members

  • name (competition name)
  • id (competition id)
  • games (number of games for competition)
  • gpp (True if GPP Competition)
  • doubleUp (True if Double Up Competition)
  • players (Array of LinestarPlayerObject)

Linestar Players

Object Name: LinestarPlayerObject

Members

  • id (player id)
  • name (player name)
  • owned (percent owned, in float format (ie: 78.2))
  • pos (position)
  • team
  • sal (salary)

Examples

import linestar

single_data = linestar.standard.fanduel_nba_own_date(datetime(2019, 2, 10))

range_data = linestar.standard.fanduel_nba_own_date(datetime(2019, 2, 5), datetime(2019, 2, 10))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linestar-scrape-1.0.8.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

linestar_scrape-1.0.8-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file linestar-scrape-1.0.8.tar.gz.

File metadata

  • Download URL: linestar-scrape-1.0.8.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for linestar-scrape-1.0.8.tar.gz
Algorithm Hash digest
SHA256 57cdaf6c8a7129b3ae720ec5de510bc19a0c02f96022fffbaf82e988762f4c99
MD5 733812536a9e231495cc7be32179c870
BLAKE2b-256 f2a7d6b83434e1a9ee87f2073201b1c3867afce6b99f7ae6535d5550e8d6a4df

See more details on using hashes here.

File details

Details for the file linestar_scrape-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: linestar_scrape-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for linestar_scrape-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d6dc85e399b8ae47b59ad44e85fb075acfdcb82d15648a716e490642c5203f58
MD5 3735e1881a49fc9655db39fc0053f1a6
BLAKE2b-256 4a01de9c8fb8345899c907d98ad37d41c84e5e2b07dbc36d600c8fb44614f420

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page