Git Product home page Git Product logo

pickle's Introduction

Pickle

Project that parses pickleball tournament webpages so we have a database with all of them.

These are the 3 websites I found that are interesting to parse, there may be more:

Usage

Boot up an iex session:

iex -S mix

And fetch some tournaments:

Pickle.Workflows.scrape_all_tournaments()

You can then look at the different tournaments:

pickle_dev=# select name, start_date, state, prize_money from tournaments where prize_money > 0 order by start_date asc limit 10;
                  name                   | start_date | state | prize_money 
-----------------------------------------+------------+-------+-------------
 Mesa Open                               | 2022-01-13 | AZ    |          75
 APP Masters                             | 2022-01-18 | FL    |          75
 APP $15k Next Gen โ€“ Oklahoma City       | 2022-02-04 | OK    |          15
 Foot Solutions Arizona Grand Slam       | 2022-02-16 |       |         120
 Punta Gorda                             | 2022-02-23 | FL    |          40
 Ororo PPA Indoor National Championships | 2022-02-24 |       |         120
 Plantation Open                         | 2022-03-02 | FL    |          40
 APP $40k Plantation Open                | 2022-03-02 | FL    |          40
 PPA Riverland Open                      | 2022-03-10 |       |         120
 Delray Beach Pickleball Open            | 2022-03-15 | FL    |          60
(10 rows)

Or, if you don't want to run the app and just want to play with the data, you can set a local postgres instance as follows:

  • make sure you have postgres on your local machine, won't go into detail how here.
  • psql -U postgres -h localhost -c 'create database pickle_dev;'
  • psql -d pickle_dev -U postgres -h localhost -f pickle_tournaments.sql

If you don't want to do any of that and just want a csv of the data, check tournaments.csv.

Here is a link to a viewable sheet: https://docs.google.com/spreadsheets/d/1sRqymNxp-wVNQV_DxP0thV3vOgtpMU5rXEeBaxx4V8Q/edit?usp=sharing

pickle's People

Contributors

pdgonzalez872 avatar

Watchers

James Cloos avatar Anthony Accomazzo avatar  avatar  avatar

pickle's Issues

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.