amalgama scraper
Project description
Amalgama-pq
Amalgama lyrics scraping
Installation
$ pip install git+https://github.com/andriyor/amalgama-pq.git#egg=amalgama-pq
Requirements
- Python 3.6 and up
Installation from source
$ git clone https://github.com/andriyor/amalgama-pq.git
$ cd amalgama
$ python setup.py install
Usage
import requests
import amalgama
artist, song = 'Pink Floyd', 'Time'
url = amalgama.get_url(artist, song)
try:
response = requests.get(url)
response.raise_for_status()
text = amalgama.get_first_translate_text(response.text)
print(f'{text}{url}')
except requests.exceptions.HTTPError:
print(f'{artist}-{song} not found in amalgama {url}')
Development
Install Pipenv
$ pipenv install --dev -e .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
amalgama-0.1.1.tar.gz
(3.2 kB
view hashes)