项目作者: joncardasis

项目描述 :
:guitar: Python API which scrapes ultimate-guitar.com for guitar chords
高级语言: Python
项目地址: git://github.com/joncardasis/ultimate-api.git
创建时间: 2017-08-03T18:27:59Z
项目社区:https://github.com/joncardasis/ultimate-api

开源协议:

下载


Ultimate-API

:guitar: An API for ultimate-guitar.com

Python-Version

Setup

  1. Install python3 from https://www.python.org/downloads/

  2. Create a virtual environment of python3:

    1. # Install virtualenv:
    2. # pip install virtualenv
    3. virtualenv -p /usr/local/bin/python3 venv
    4. source venv/bin/activate
  3. Install dependancies:

    1. pip install -r requirements.txt
  4. Usage:

    1. export FLASK_DEBUG=1 // Export for debug
    2. python run.py

Endpoints

Method Endpoint Parameters Result
GET /tab url: A full (including protocol) url for an ultimate-guitar.com tab. JSON response containing tab info as well as each tab line

Running Tests

To run the full test suite execute the following from the top level directory.

  1. python test.py