Scraper to fetch data points from site & showing that through API endpoint.
To run Scraper, run the following command
scrapy crawl <spider_name>
where spider names could be comparetv, or justwatch.
To run Server, run the following command
uvicorn apis:app --reload
Open your browser at http://127.0.0.1:8000 to see the JSON response OR go to http://127.0.0.1:8000/docs to open that in Swagger UI.
GET /
Parameter | Type | Description |
---|---|---|
site |
string |
Optional. Site name |
offset |
int |
Optional. Start value |
limit |
int |
Optional. End value |