Coder Social home page Coder Social logo

gbf-bookmaker-scraper's Introduction

GBF-Bookmaker-Scraper

Simple script that scrapes the bookmaker scores every 20 minutes and updates a spreadsheet as well as outputs to a discord webhook accordingly. Loosely based off of kyoukaya's gbf-scraper

Installation

  • Python 3.6

  • The following packages:

    • selenium
    • seleniumrequests
    • oauth2client
    • BeautifulSoup
    • gspread
    • plotly
    • discord [development version]
  • Chrome/chromium

  • Chrome webdriver (Must be in the same directory)

  • Setting up oauth2 to use google docs spreadsheets:

    1. Go to the Google APIs Console.
    2. Create a new project.
    3. Click Enable API. Search for and enable the Google Drive API and Google Sheets API.
    4. Create credentials for a Web Server to access Application Data.
    5. Name the service account and grant it a Project Role of Editor.
    6. Download the JSON file.
    7. Copy the JSON file to the same directory and rename it to client_secret.json
    8. Create a google docs spreadsheet called GW Points under any account.
    9. Open client_secret.json and find client_email inside and copy this e-mail address.
    10. On the google docs spreadsheet, share the spreadsheet to the e-mail that was copied and ensure that it has permission to edit.

Usage

The GW identifier must be 3 digits. e.g. 035 for the 35th GW. usage: bookmaker-scraper.py [profile] [GW] [options]

example: python bookmaker-scraper.py profile1 035 -l

flag arguments description
--login, -l None Pauses the script upon starting up to allow logging in

gbf-bookmaker-scraper's People

Contributors

daitan avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

recnaleerf

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.