https://github.com/officialpiyush/lyriks.js
A lyrics scraping api for nodejs
https://github.com/officialpiyush/lyriks.js
api azlyrics lyrics music musixmatch nodejs scraping song
Last synced: 4 months ago
JSON representation
A lyrics scraping api for nodejs
- Host: GitHub
- URL: https://github.com/officialpiyush/lyriks.js
- Owner: officialpiyush
- License: gpl-3.0
- Created: 2020-11-05T07:14:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T15:30:47.000Z (over 4 years ago)
- Last Synced: 2025-01-02T14:16:54.829Z (5 months ago)
- Topics: api, azlyrics, lyrics, music, musixmatch, nodejs, scraping, song
- Language: TypeScript
- Homepage:
- Size: 23.4 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
**NPM** :
```bash
npm install lyriks.js
```**Yarn** :
```bash
yarn add lyriks.js
```## Example usage
```js
const { LyriksClient } = require("lyriks.js")const lyriksClient = new LyriksClient()
// Promise based
lyriksClient.getLyrics("dynamite").then(lyrik => {
if(!lyrik) throw "No data found"
// You can access the data using the following functions
const author = lyrik.getAuthor()
const title = lyrik.getAuthor()
const source = lyrik.getSource()
const search = lyrik.getSearch()
const url = lyrik.getURL()
const lyrics = lyrik.getContent() // or getLyrics() or getLyriks() also works :p// Do stuff with the above data
})
```## Contributors
👤 **Piyush**
- Author
- Website:
- Github: [@officialpiyush](https://github.com/officialpiyush)