GithubHelp home page GithubHelp logo

cpscrape's Introduction

cpscrape

A CyberPatriot-unofficial-scoreboard-to-Google-spreadsheet scraper/parser.

It takes a column of teams from a Google spreadsheet file and outputs to the same file in a nice table! All you need is python and a Google service account.

Installation

First, ensure you have the necessary packages.

pip install -r requirements.txt

Setup

This program requires you to make a Google service account.

To quickly summarize: create a project in the Google developer console, set up the service account, create the JSON key and save it, then add the account as an editor to your spreadsheet.

Additionally, you will need to change several variables in scraper.py.

Definitions you'll need to change

  • VALID_IMAGES
    • A list of all images tested in the current round. You can select a team to see the image names - what you want is the part before the first underscore.
  • SERVICE_ACCOUNT_FILE
    • The relative path to your service key, which should be a JSON file.
  • SPREADSHEET_ID
    • The unique ID of your Google spreadsheet. You can find it in the URL, and it will be the part after "/d/" but before "/edit"
  • INRANGE
    • Located in your spreadsheet, this should be the one column of team numbers that you want the program to scrape.
  • OUTRANGE
    • Also located in your spreadsheet, this should be the upper-left corner cell of the desired output location.

cpscrape's People

Contributors

slyq avatar

Watchers

 avatar

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.