Skip to content
.NET Core Azure Function to scrape Vancouver website for rezoning updates & publish to Slack
C#
Branch: master
Clone or download

README.md

RezoningScraper

A small project written for Abundant Housing Vancouver.

Scrapes the City of Vancouver's rezoning application page then notifies people of any changes via Slack. It's an Azure Function written in C# using .NET Core, uses HtmlAgilityPack for HTML parsing and Azure Table+Blob storage.

Build

Just run dotnet build.

Development + Deployment

I use the Azure Functions extension in VS Code.

To run this locally, you may first need to use the "Initialize project for use with VS Code" command.

To deploy, use the "Deploy to function app" command and point it at the publish output folder (/RezoningScraper.Functions/bin/Release/netstandard2.0/publish).

Troubleshooting: try opening the RezoningScraper.Functions folder and deploying from there – sometimes doesn't work from the solution directory, need to figure out why.

Tests

dotnet test

Note that there is a bug (?) in the current version of .NET Core that means when you run dotnet test on a solution, it attempts to run tests in all projects (and fails on projects that contain no tests). I'm using this handy fix by Martin Ullrich , as found in this GitHub issue.

You can’t perform that action at this time.