https://github.com/marckassay/cfo
This is a Microsoft Azure solution that scrapes WODs from crossfitorlando.com
https://github.com/marckassay/cfo
bootstrap c-sharp microsoft-azure-solution mvc-framework powershell
Last synced: 7 months ago
JSON representation
This is a Microsoft Azure solution that scrapes WODs from crossfitorlando.com
- Host: GitHub
- URL: https://github.com/marckassay/cfo
- Owner: marckassay
- Created: 2015-05-21T14:55:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T02:06:44.000Z (almost 10 years ago)
- Last Synced: 2025-01-24T14:44:40.809Z (9 months ago)
- Topics: bootstrap, c-sharp, microsoft-azure-solution, mvc-framework, powershell
- Language: C#
- Homepage:
- Size: 1.44 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.svcCurrently 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:
* Create a CFOWOD folder in your PowerShell module directory. For an example: C:\Users\Marc\Documents\WindowsPowerShell\Modules\CFOWOD
* Download CFOWOD.psm1 into the CFOWOD folder: https://raw.githubusercontent.com/marckassay/CFO/master/CFOWOD/CFOWOD.psm1Usage:
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 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/