A scraper of viedemerde.fr posts made with Lumen
Install dependencies by running composer install
.
Then run php artisan migrate
to setup the database
You can use the command php artisan scrap
to get the latest posts from VDM website.
you can also specify the number of posts by using the option --count[=COUNT]
the default and max value is 200
Use can request /api/posts
to get all posts or /api/posts/{id}
to get a specific post
To run test use vendor/bin/phpunit