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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file amalgama-0.1.1.tar.gz.

File metadata

  • Download URL: amalgama-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.7.0 Linux/4.15.0-20-generic

File hashes

Hashes for amalgama-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ee512b2a3afba302766cf3ffa2a4f6da4d9f1c58d127aed83222e3ed51ac54c2
MD5 2a68cda800481b1a7cda8659d8525d28
BLAKE2b-256 704483d1bc25088f302758f29bd9f75148cc1ad8755a63869dda32ca595e7178

See more details on using hashes here.

File details

Details for the file amalgama-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: amalgama-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.7.0 Linux/4.15.0-20-generic

File hashes

Hashes for amalgama-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c94f67f02593de81d04235971ba3f4af3d6c401df13661157be53b66fd57107
MD5 2af9cc688014e33ddbbfb5622e8760e2
BLAKE2b-256 bff0fc4df6524a63072e42975be4bacd1c016cbd8c07704c41c28d1d89099629

See more details on using hashes here.

Supported by

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