Giter Site home page Giter Site logo

igorkosta / crossfit-wod Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.57 MB

Random WOD from https://crossfit.com/. Available here: https://igorkosta.github.io/crossfit-wod/

License: MIT License

JavaScript 70.19% HTML 17.07% CSS 12.74%
javascript crossfit-wod workouts wod nodejs scraping

crossfit-wod's Introduction

Crossfit WOD Codeship Status for igorkosta/crossfit-wod

crossfit-wod will log a random workout of the day from https://crossfit.com/workout/ to your console

Installation

npm install -g crossfit-wod

Usage

crossfit-wod

New in the 0.0.6

The output contains the links to the next and previous wod now as well:

{ title: 'Wednesday 060322',
  href: 'https://crossfit.com/workout/2006/03/22',
  excercises: 'Push Jerk 3-2-2-2-1-1-1-1-1 repsPost loads to commentsCompare to 060105.',
  picture_url: 'https://d1s2fu91rxnpt4.cloudfront.net/legacy/CF-NC_outsidesos.jpg',
  next: 'https://crossfit.com/workout/2006/03/23',
  previous: 'https://crossfit.com/workout/2006/03/21' }

TODOs

  • I randomize the date and requests the page of this date to crawl the workout. Most of the times the contents of the workout are inside of the first <p></p> block but not always. It might be the case that the first <p></p> holds some kind of page title with a link then the contents of this title will be shown as excercises which is not good :). I have to think how to solve this problem without creating a lot of mess.
  • Implement search
  • Tests - current coverage is 93.62%. I have to hit 100%
  • Parse and response with media links

License

MIT

Disclaimer, Warranty

This software is not related, authorized or maintained by https://crossfit.com or any other company named in the above document. Use this software responsibly.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

crossfit-wod's People

Contributors

igorkosta avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.