dwright20 / local-fan-page

Consolidates team information to one local web page

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local Fan Page

Local fan page scrapes content from various sports/information sites and consolidates the data into a web page that is locally hosted and accessible. This is done by producing a binary that contains all static content and the code to generate the dynamic content. The first release is built around my favorite soccer team, Juventus, but I do plan to create implementations for other teams and sports.

Juventus Fan Page

Examples

Code Summary

  • I created a scraper package that is called to scrape given web page URLs and return the results.
  • Team.go contains the main files that are each tailored toward a specific team. It passes resources into the scraper functions to produce content for the HTML templates, which are served to the user's browser via Mux.
  • All HTML must be tailored toward each specific team as well. Code is provided to show how data is being passed.

Key Packages/Examples Used

  • go.rice - embedding static content
  • Mux - serving content in browser
  • Colly - web scraping
  • HTML - HTML parsing
  • Open Function - automate opening browser to webpage

Sites Used

About

Consolidates team information to one local web page


Languages

Language:Go 75.0%Language:HTML 25.0%