Perustaja / Fsp-Scraper

Aircraft data scraper using Selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explanation

Our company has a fleet of aircraft that is tracked by an online service. The service does not have a public API for customers to call on their own. My company needed accurate time information for automated maintenance document software and logbook tracking.

Using Selenium, aircraft times are scraped off of the website and stored into a database using EF Core. The scraper is scheduled as an hourly job in Hangfire with a one-time job also set on startup. A very simple web API is also in place to serve the aircraft information.

Setup

Software

A valid version of chromedriver on PATH that is valid with your current installed version of Chrome is necessary as the scraping is done via Chromedriver.

Database

Migrations are committed to the repository. To create a local SQLite database:

$ cd FspScraper.WebApi
$ dotnet ef database update

Login Configuration

Login configuration is stored in user secrets and injected via the IOptions interface.

$ cd FspScraper.WebAPI
$ dotnet user-secrets set "Login:FspUser" "<your_email>"
$ dotnet user-secrets set "Login:FspPass" "<your_pass>"

About

Aircraft data scraper using Selenium


Languages

Language:C# 100.0%