Skip to main content

amalgama scraper

Project description


image image image Build Status codecov

Amalgama lyrics scraping


  • Python 3.5 and up


from PyPI

$ pip install amalgama

from git repository

$ pip install git+

from source

$ git clone
$ cd amalgama-pq
$ python install


import requests

import amalgama

artist, song = 'Pink Floyd', 'Time'
url = amalgama.get_url(artist, song)
    response = requests.get(url)
    text = amalgama.get_first_translate_text(response.text)
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 .



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for amalgama, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size amalgama-0.2.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View
Filename, size amalgama-0.2.3-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page