Skip to content

UserGhost411/FilmMikirAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/<page> Integer ^ same but with Pagination
/news/read/<id> String Get Article from some news
/review - Get movie reviews from kincir
/review/<page> Integer ^ same but with Pagination
/review/read/<id> String ^ Get Article from some review
/rating - Get movie ratings from ImDb
/rating/<page> Integer ^ same but with Pagination
/search/<article|rating>/<keyword> String,String Search Specific Article or Rating
/search/<article|rating>/<keyword>/<page> String,String,Number ^ same but with Pagination

#note: The Article id contained in the search result can be used for /review/read/<id> and /news/read/<id> endpoints

API Usage

BaseURL:

https://film-mikir.vercel.app/

Example:

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