Giter Site home page Giter Site logo

eduardofafernandes / f1fantasyscraper Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 64 KB

The main focus of this project is to track f1 fantasy game.

License: GNU General Public License v3.0

Python 100.00%
f1-fantasy f1 scraper price-tracker price fantasy-f1 python

f1fantasyscraper's Introduction

F1FantasyScraper

License: GPL v3 typechecking-and-linting

The main focus of this project is to track F1 fantasy game prices. If you are interested in only the data visit https://github.com/EduardoFAFernandes/F1FantasyData

This program can request price data to F1Fantasy and save it as a CSV.

Installation

To run the project on your machine you will need to:

  • Install python 3
  • Clone the repository
  • Run pip install -r requirements.txt With this default configuration will run.

Run the program

After installation simply run python scrapper.py This will fetch the data and save it in a file named prices.csv in the working directory. If you want the program to fetch the data in a constant interval you need one additional parameter -dt, --delta-time for example: python scrapper.py -dt 30 will keep the program running and will fetch the data every 30 minutes. More information in the Usage section.

Usage

Bellow you can see the help command being run.

usage: scraper.py [-h] [--delta-time DELTA_TIME]
                  [--unit-time {m,minutes,h,hours}]
                  [--logging-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG}]
                  [--logging-file LOGGING_FILE] [--report-file REPORT_FILE]

optional arguments:
  -h, --help            show this help message and exit
  --delta-time DELTA_TIME, -dt DELTA_TIME
                        interval of time in unitTime between updates (default:
                        -)
  --unit-time {m,minutes,h,hours}, -ut {m,minutes,h,hours}
                        unit of time to use with deltaTime (default:
                        'minutes')
  --logging-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG}, -ll {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG}
                        logging level to use (default: 'INFO')
  --logging-file LOGGING_FILE, -lf LOGGING_FILE
                        file to save the logs (default: -)
  --report-file REPORT_FILE, -rf REPORT_FILE
                        file to save the data in a smaller format (default:
                        'prices.csv')

f1fantasyscraper's People

Contributors

eduardofafernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rtwarren

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.