Giter VIP home page Giter VIP logo

deseret-hs-sports-api's Introduction

deseret-hs-sports-api

Moving accross the country, I still wanted to keep tabs on my brother's soccer games. In Utah there is a local site Deseret News that covers all high school sports. So I wanted to create a simple API for Deseret News High School Sports section.

This is in its infancy right now, but will be improved as i work on it more.

Currently, there is a class DSS - Deseret Sports Scraper - that accepets a Deseret url in the following format:

https://sports.deseret.com/high-school/school/{school-name}/{sport}/scores-schedule

The default functionality is using the module after initalizing the DSS object:

self.run()

This scrapes the site and pull a date and the date previous's results as well as upcoming games. It then sends an email to all emails listed in the recipients.txt file.

NOTE: This defaults to datetime.date.today(), but can be changed using the module:

self._set_date(new_date)

Example

You can find an example of what was done in the example_fhs.py file.

Email/Config File Requirements

I have writen a send_email module that relies on a make_config module that I also created. You can find these here: https://github.com/jaceiverson/custom-python

Details on how to best use these modules is inclued on the README.md for that project.

Recomended Automation

MAC

Use crontab. One of the best articles on how to set up crontab working on your mac can be found here:
https://www.jcchouinard.com/python-automation-with-cron-on-mac/#troubleshooting

Windows

Use the Task Scheuler. A clear article on how to do this can be found here:
https://www.jcchouinard.com/python-automation-using-task-scheduler/

deseret-hs-sports-api's People

Contributors

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