Skip to content
/ CFO Public

This is a Microsoft Azure solution that scrapes WODs from crossfitorlando.com

Notifications You must be signed in to change notification settings

marckassay/CFO

Repository files navigation

CFOService

This is a Microsoft Azure solution that scrapes data daily from crossfitorlando.com. The data stored are WODs (Workout Of the Day). With this solution active on Azure, clients can query cloud service to retrieve one WOD or multiple WODs. The following is the service URL: http://cfocloudservice.cloudapp.net/Service.svc

Currently data is stored dating back to 11/29/2014.

This solution consists of the following 5 projects:

CFOWOD

This is a PowerShell module that is acting as a client to query the cloud service. To install automatically, run the following script (PowerShell must be relaxed with security):

(new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/marckassay/CFO/master/CFOWOD/CFOWOD.ps1") | iex

To install manually:

Usage:

PS> Get-WOD
PS> Get-WOD "4/25/15"
PS> Get-WOD "4/25/15 -2"
PS> Get-WOD "4/13/15 +2"
PS> Get-WOD "*"

CloudService

This project is the Azure cloud service that hosts ServiceWebRole.

ScraperWebJob

This WebJob project typically runs daily on Azure which scrapes the WOD web page from crossfitorlando.com. This project uses HtmlAgility for scraping which will then marshal the data into a WOD entity. The entity is then stored into Azure Storage as a Table (NoSQL key-attribute data store).

ServiceWebRole

This is the SOAP web service project on Azure. Interface contains GetWOD method:

namespace ServiceWebRole
{
	[ServiceContract]
	public interface IService
	{
		[OperationContract]
		IEnumerable<WOD> GetWOD(string DateEx);
	}
}

The DateEx (date expression) parameter can take the following expressions:

// returns a WOD for April 25th 2015
"4/25/15"

// returns WOD objects for April 23rd-25th of 2015.  
"4/25/15 -2"

// returns WOD objects for April 25th-27th of 2015. 
"4/13/15 +2"

// returns a random WOD object 
"*"

WebApplication

This web application is using ASP .NET MVC, Angular and Bootstrap. The current IP address is the following: http://104.209.185.221:8080/

About

This is a Microsoft Azure solution that scrapes WODs from crossfitorlando.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published