Work-in-progress code to scrape and then parse contracting data from departments' Proactive Disclosure website. Uses the Laravel framework. Based on previous work in goc-spending-mini.
Requires an environment that can run the latest version of the Laravel Framework. The Homestead environment works well.
- Clone the repository
- Go to the new folder, and run
composer install. This will download any Laravel and project-specific dependencies. - Create a copy of
.env.exampleand name it.env. This will allow you to customize any settings on a per-installation basis. - ???
- Profit!
We have a set of Artisan commands available, under the department namespace. (Run php artisan help department: to get a
complete list.) To run them, you’ll need a department acronym—you can see the full list of supported departments by checking
the app/DepartmentHandlers/ folder. Example usage, for Environment Canada:
php artisan department:fetch ec
php artisan department:parse ec
Or, running the fetch and parse in one go:
php artisan department:run ec
The Laravel framework is open-sourced software licensed under the MIT license.