This application periodically scrapes this site for car deals.
At the time of creating this repo, there is currently no way to set up alerts for car deals that I am interested in. So every 24 hours, this application uses puppeteer to scrape key information from the site.
There is also some pretty clever code to check which offers have been deleted or added to the site, preventing duplicate alerts. Hash Maps and Sets are used to get very solid time complexities.
Deals that are added can be:
- Filtered
- Sent to a recipient via email
You can also add your Fleet Solutions login details to a .env
file and the
scraper will log into your account and only show offers available specifically
to your company.
-
You must have a version of Chrome installed.
-
You must have deno installed.
- Install dependencies with:
pnpm i
- Rename
.env.example
to.env
file in the project's root. You can check what env options there are in theenv.ts
file.
- Start the application with:
pnpm run start
- Compile the application with:
pnpm run compile
- Start the
scraper.exe
file however you like.
Currently only gmail accounts are supported, if you want to receive emails when new offers are added:
- Create a gmail account (or use an existing one), and set up 2FA.
- Create an application password for the gmail account.
- Set the appropriate environment variables in the
.env
file.
A typical alert email looks like this: