- install MongoDB, if not installed
- start MongoDB service
- install
python >= 3.6
andpip >= 19.0.3
- install requirements
pip install -r requirements.txt
- Start
manage.py
file with terminalpython manage.py command [args]
help
- write help infosearch [args]
- send "search query in quotation marks" as argsexport [args]
- send 1/0 - dump media files or not
- Create SearchEngine object
- Call start method with search query
- SearchEngine will connect to MongoDB
- MongoDB database with name
music_search
will contain all find info
music_search.artist
- info about artistsmusic_search.song
- info about songsmusic_search.log
- logs
start
- start parse site with search requestlen
- number of artist foundwrite_json
- dump database to json fileto_json
- dump database to json (return array of artist and song database in json)_get_artist_info
- get info about the artist, if there is no artist in the database, then create a new
name
- artist nameimage
- artist image(from song)created_at
- time when artist was added
artist
- artist idname
- song nameduration
- song durationsize
- song sizedownload_url
- url for download songaudio_file
- song audio filecreated_at
- time when song was added
type_added
- type of added model (song/artist)name_added
- added model namecreated_at
- time when log was addedadded
- item was added or error
add_artists
- add many artistsadd_artist
- add one artistadd_tracklist
- add track list (>1 song)add_song
- add one songget_artist_tracklist
- get track list of artist with nameget_artist_by_song
- get song artistget_artist
- get artist by nameis_artist_exist
- check artist in databaseshow_all_artist
- return all artist in databaseto_json_artist
- dump artist database to jsonto_json_song
- dump song database to jsondownload
- download file from url to temp file