Git Product home page Git Product logo

amdm-python-api's Introduction

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>
И ковш на небе перевёрнут.

...

amdm-python-api's People

Contributors

kostyakoz avatar monsterdeveloper avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.