Skip to content

Simple class to get guitar (and ukulele!) chords data.

Notifications You must be signed in to change notification settings

kostyakoz/amdm-python-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AmDm Python API

Simple class to get guitar chords data from amdm.ru. I dont have any relation to this site.

I did it for my Telegram bot, feel free to change it and contact me — telegram.dog/kozak

Requirements

  • bs4
  • requests

How to use

Clone repo and move amdm.py to your project dir:

from amdm import AmDm

Get chords URLs

chords = AmDm.get_chords_list('сплин танцуй')

Print data with print(json.dumps(chords[0], indent=4):

{
    "artist": "Сплин",
    "title": "Танцуй!",
    "url": "http://amdm.ru/akkordi/splin/102024/tancuy/"
}

Get chords text

song = AmDm.get_chords_song('http://amdm.ru/akkordi/splin/102024/tancuy/')

Print data with print(song):

Вступление: <b>C</b> <b>B</b> | <b>Em</b> } 4 раза

 <b>C</b> <b>B</b>
Волна бежит на этот берег.
 <b>Em</b>
Волна бежит и что-то бредит.
 <b>C</b> <b>B</b>
И звёзды падают за ворот,
 <b>Em</b>
И ковш на небе перевёрнут.

...

About

Simple class to get guitar (and ukulele!) chords data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages