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.2.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file amalgama-0.1.2.tar.gz.
File metadata
- Download URL: amalgama-0.1.2.tar.gz
- Upload date:
- Size: 3.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a8a5c69acccf5428d012c1bdc8e600601fdd652188ef04357656a1046ebdc2e
|
|
| MD5 |
afbcba31083d8a9e406212cffd788670
|
|
| BLAKE2b-256 |
334dd31078e4674f3a745cf11fa68161b57a60de00fda47399d5ddfc11c2dfe2
|
File details
Details for the file amalgama-0.1.2-py3-none-any.whl.
File metadata
- Download URL: amalgama-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8eda45cdc73412a0267d8766837f226c94d48dc1e67728f8d70b4f57a23057a
|
|
| MD5 |
dc677824374cea0bc4cb7c1fdbd7fd74
|
|
| BLAKE2b-256 |
6ed67ebc30ac79e8295546fedb0618ef09aaa883a45c86a65c92ad4ccb3c2138
|