Skip to main content

amalgama scraper

Project description

Amalgama-pq

Build Status codecov

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)

Uploaded Source

Built Distribution

amalgama-0.1.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page