@malvin

Какую обучалку для Flask или в какую сторону смотреть для simple endpoint?

Нужно сделать простенький Endpoint, на который будет цепляться webhook c удаленного сервиса. Затем запускается скрипт и что-то делает. Без веб интерфейса.
Советуют web app Flask.
Отсюда два вопроса.
1. Посоветуйте обучающую статью или руководство.
2. Возможно есть другие варианты. Готовые публичные решения или еще чего.
Спасибо.
П.С.
требования для ендпоинт.
Finish webhook URL {finishWebhookUrl: String}
A custom endpoint that receives a HTTP POST right after every run of the crawler ends, regardless of its status, i.e. whether it finished, failed, was stopped, etc. The POST payload is a JSON object defining an _id property which contains an execution ID of the crawler run, e.g. {_id: "S76d9xzpvY7NLfSJc"}. You can use this ID to query the crawl status and results using the API. Beware that the JSON object might be extended with other properties in the future.

The response to the POST request must have a HTTP status code in 2XX range. Otherwise it is considered an error and the request is periodically retried every hour. If the request does not succeed after 48 hours, the system gives up and stops sending the requests.
  • Вопрос задан
  • 208 просмотров
Пригласить эксперта
Ответы на вопрос 1
@khlopko
Flask - flask.pocoo.org/docs/0.12/quickstart либо на русском вариант https://habrahabr.ru/post/193242/
Можете еще посмотреть Tornado - www.tornadoweb.org/en/stable
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы