Skip to main content

Amalgama-pq

image image image Build Status codecov

Amalgama lyrics scraping

Requirements

  • Python 3.5 and up

Installation

from PyPI

$ pip install amalgama

from git repository

$ pip install git+https://github.com/andriyor/amalgama-pq.git#egg=amalgama-pq

from source

$ git clone https://github.com/andriyor/amalgama-pq.git
$ cd amalgama-pq
$ 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}')

Expected output

Time (оригинал Pink Floyd)

Ticking away the moments that make up a dull day
You fritter and waste the hours in an off hand way
Kicking around on a piece of ground in your home town
Waiting for someone or something to show you the way
...

Время (перевод Дмитрий Попов из Новокузнецка)

Тикают секунды, наполняя скучный день,
Ты разбрасываешься по мелочам и понапрасну тратишь время,
Вертишься вокруг клочка земли родного города,
В ожидании, что кто-то или что-то укажет тебе путь.
...

Development setup

Using Poetry

$ poetry install

run tests

$ poetry run pytest

or Pipenv

$ pipenv install --dev -e .

License

MIT

Metadata

Release files for amalgama 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amalgama 0.2.3
File Size Uploaded Provenance
amalgama-0.2.3.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for amalgama 0.2.3
File Interpreter ABI Platform
amalgama-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / amalgama-0.2.3.tar.gz

Download URL amalgama-0.2.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
47faaa09d250187798c1f48cd53708338606eadb049bdb98e98b2d09849d7584
BLAKE2b-256 checksum
How to use checksums
1ecd6493004738b184546b2399834ecb0093a90bc758f72f053e1d29ae0f9c04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0b4 CPython/3.7.1 Linux/5.3.0-19-generic

Release files / amalgama-0.2.3-py3-none-any.whl

Download URL amalgama-0.2.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51bf50fc281f9509dbc181952a6e33cadc4f8dbbce5881f9efe8f9d11dfa5db3
BLAKE2b-256 checksum
How to use checksums
1b901054449046c28fc478e69eef1c8d0398ea5d4b002427e027313e654e197c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0b4 CPython/3.7.1 Linux/5.3.0-19-generic

Security for amalgama 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page