Code Monkey home page Code Monkey logo

nba_mojo_data_uploader's Introduction

NBA_Mojo_Data_Uploader

This repository contains the python script that I use to download NBA player data as a csv file from https://s3.amazonaws.com/static.mojo.com/nba-data/future_stats.csv and upload it to my google drive folder. I use windows scheduler to download the data daily and then the Google Cloud API as part of my python script to upload the data file to google drive.

This repository does NOT contain my windows scheduler task but follow this tutorial: https://www.jcchouinard.com/python-automation-using-task-scheduler/ if you have windows. The Linux/MacOS equivalent is called Cron. It also does NOT contain the JSON file with my Google Cloud API keys. You will need to go to https://console.cloud.google.com/ and authorize Google Drive access, create a service project, create an API key for the project, and save the JSON file that it provides. For your Google Drive folder ID, go inside your desired drive folder and copy the last section of its URL. Lastly, you will need to share the folder with the email listed for the Google Cloud service account.

The functionality currently creates a new file every time the script is run, but I will be changing this to only update the existing file. The code for that is commented out until what's below happens.

As a note, the url for the AWS S3 bucket currently denies access. It was working as of October 12th, so I'll make sure to check back to see when it starts working again.

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.