This C# project scrapes NBA game results from Basketball Reference website, processes the data using Handlebars templating, and sends an email notification with the formatted results.
- C#
- HtmlAgilityPack
- Handlebars.Net
- Clone or download this project repository.
- Open the solution file (SportsResults.Dejmenek.sln) in Visual Studio.
- Install the required NuGet packages:
- Handlebars.Net
- HtmlAgilityPack
- Microsoft.Extensions.Configuration
- Microsoft.Extensions.Configuration.FileExtensions
- Microsoft.Extensions.Configuration.Json
- Microsoft.Extensions.DependencyInjection
- Update the appsettings.json.
Server
: Replace with the hostname or IP address of your SMTP server for sending emailsPort
: Update with the port number used by your SMTP server (standard is usually 587)SenderUsername
: Username used by your SMTP serverSenderPassword
: Password used by your SMTP serverReceiverEmail
: Enter the email address where you want to receive the nba informations
- Data Scraping: Employs HtmlAgilityPack to efficiently extract data from the target website.
- Data Processing: Leverages Handlebars templating for flexible and maintainable result formatting. Define clear and well-structured templates for the email content
- Email Notification: Utilizes the System.Net.Mail library to send email notifications.