This Laravel project serves as a web scraping API designed to retrieve movie information from a selected Polish cinema website. It is currently at version 1, providing basic functionality for fetching movie data.
- Web scraping functionality to extract movie information
- API endpoints for accessing movie data
- Support for a selected Polish cinema website
To set up the Laravel Web Scraping API on your local machine, follow these steps:
- Clone this repository to your local environment.
- Navigate to the project directory.
- Run
composer installto install dependencies. - Configure your environment variables in the
.envfile. - Run
php artisan serveto start the development server.
Here are the available API endpoints:
GET /api/backup: Trigger backup of data.GET /api/dates: Get a list of dates in advance.GET /api/movies-1: Retrieve movies from CinemaCity.GET /api/movies-2: Retrieve movies from Multikino.GET /api/movies-3: Retrieve movies from KinoMoranow.GET /api/locations: Get a list of cinema cities.GET /api/attributes: Get a list of attributes.GET /api/sync: Trigger synchronization.POST /api/movies/search: Search movies by location.POST /api/movies: Store a new movie.DELETE /api/movies/{id}: Delete a movie by ID.GET /api/cinemas: Retrieve a list of cinemas.POST /api/cinemas: Store a new cinema.DELETE /api/cinemas/{id}: Delete a cinema by ID.
Note: Some endpoints may require authentication.
This project is built using Laravel, a PHP web application framework. Additionally, it leverages web scraping techniques to extract data from the selected Polish cinema website.
- Version 1
- Initial release with basic web scraping functionality.
Contributions to this project are welcome! If you'd like to contribute, please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.