Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.72 KB

README.md

File metadata and controls

54 lines (41 loc) · 1.72 KB
  1. Реализовать хранение в репозитории
  2. упакопавать в докер компоус
  3. Проверить на ошибки
  4. сделать фронт в виде бота в телеграм и воможно сайт




Events scraper back

The Events scraper backend

The scraper with REST interface for scraping concerts

start

For start server you need run app.py, beforehand setting up postgres credential at settings.py

API endpoints

For all requests need send X-API-KEY in headers - default X-API-KEY = password

# [GET] to search the artist for artist name.
# Structure responce [{Name: Artist name, 
#                      Artist code: artist code, 
#                      Picture url: picture url}, ...]
# Responce can have multiple dicts
/<request_from>/<id>/search_artist/?Artist name=<Artist name>

# [GET] to search events for artist code.
# Structure responce [{Link: Link,
#                      Date: Date,
#                      Concert hall: concert hall,
#                      Place: concert place}), ...]
# Responce can have multiple dicts
/<request_from>/<id>/search_events/?Artist code=<Artist code>

# [GET] to get link for buy ticet on event.
# Structure responce {Ticket url: ticker url}
/<request_from>/<id>/get_ticket/?Concert Link=<Concert Link>

Credits

This software uses the following open source packages: