I'm working project it contains a GET request with a few parameters suchas (airline code and flight date), I pass those parameters to a crawler coded using scrapy . I've created Django command in management/commands to hit the scrapy crawler and as soon the scraping is done the data being saved in particular models. As I want to return that saved data to the same GET request, I have a few questions regarding it.
How to return data in GET request? As I couldn't find a way to get returned data from scrapy crawler.
How do I make wait that GET request for a particular time when scraping is being done.
Assuming GET request is on waiting and scrapping is done now I have to validate if there is scraped data present in database accordingly to the params.
Assuming the data is found in database and then how can I return it to the same GET request?
If I want to use celery in this whole process what could be the best use of it?