GithubHelp home page GithubHelp logo

tankengine-ish / crossfit_wods_web_scraper Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.75 MB

Advanced Selenium Automation Script [personal project]

Python 100.00%
powershell selenium-webdriver webscraping

crossfit_wods_web_scraper's Introduction

Crossfit_Workouts_Web_Scraper

If your go-to crossfit gym is now addicted to giving 90 burpees every other day this python script will pick a better alternative for your training session.

Description

The main automation events are:

  • The script logs in your official CrossFit account.
  • Selects the 'workouts' tab and from a couple of drop-down menus it picks a random month and a year (as far back as 2001).
  • After that it randomly scrolls down (or stays put) over the list of workouts that are now listed.
  • Grabs a screenshot, saves it to your computer.
  • Finally it uploads it to your Dropbox account using your Dropbox API key.

There are many other small pieces of logic and QoL tweaks but these are the most important stops of the script. The reason why I chose a screenshot of the whole page instead of randomly clicking on a specific workout and then printing it is that sometimes on the page there might be up to 3 workouts so the screenshot can contain more than one workout. This way I simply get more breathing room if I'm not liking that singled out workout the script picked out for me.

Tools I've used

Selenium, various Python libraries, Powershell. I started out with some basic BeautifulSoup for scraping and Twilio for phone notifications but I quickly abandoned that initial idea.

crossfit_wods_web_scraper's People

Contributors

tankengine-ish 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.