FilmMikirAPI
This repo is a simple rest-api which is used for scrapping on the Kincir website using the Python and Flask package
Endpoint
Url Usage | Params Type | Endpoint |
---|---|---|
/ | - | Default Endpoint |
/news | - | Get News Article from kincir |
/news/
|
Integer | ^ same but with Pagination |
/news/read/
|
String | Get Article from some news |
/review | - | Get movie reviews from kincir |
/review/
|
Integer | ^ same but with Pagination |
/review/read/
|
String | ^ Get Article from some review |
/rating | - | Get movie ratings from ImDb |
/rating/
|
Integer | ^ same but with Pagination |
/search/
/
|
String,String | Search Specific Article or Rating |
/search/
/
/
|
String,String,Number | ^ same but with Pagination |
#note: The Article id
contained in the search result can be used for /review/read/
and /news/read/
endpoints
API Usage
BaseURL:
https://filmmikirapi.herokuapp.com/
Example:
- https://filmmikirapi.herokuapp.com/news/2
- https://filmmikirapi.herokuapp.com/news/read/zWQ4BWRgjo0Or
- https://filmmikirapi.herokuapp.com/search/article/marvel/2
- https://filmmikirapi.herokuapp.com/search/article/monster%20hunter
Development
- (For Windows) set the flask app
set FLASK_APP=app.py
- Start server with command:
python -m flask run
Then open http://127.0.0.1:5000/
Package Used
This project uses several packages contained in requirements, which can be installed using the PIP command:
python -m pip install -r requirements.txt
License
This API Scrapper is licensed under the MIT License