![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
lyricsfetchergenius
Advanced tools
npm install --save lyricsfetchergenius@latest
Get the genius APIKey/Token here
Using Typescript
import lyricsfetchergenius from "lyricsfetchergenius";
Using Javascript
Using GetLyrics:
const lyricsfetchergenius = require("lyricsfetchergenius");
// example of options 1
var options = {
APIKey: "your-genius-api-key",
Title: "Late Night Trips",
Artist: "Alex1",
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
// example of options 2
const APIKey = process.env.APIKEY || "your-genius-api-key";
// below player is erela.js || you can use anything.
const songTitle = player.queue.current.title;
const songArtist = player.queue.current.author;
var options = {
APIKey: APIKey,
Title: songTitle,
Artist: songArtist,
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
async () => {
try {
let lyrics = await lyricsfetchergenius.GetLyrics(options);
lyrics = lyrics.replace(/(\[.+\])/g, ""); // optional
console.log(lyrics); // you can do somthing else with it other than console.log
} catch (error) {
throw error;
}
};
Using GetAlbumArt:
const lyricsfetchergenius = require("lyricsfetchergenius");
// example of options 1
var options = {
APIKey: "your-genius-api-key",
Title: "Late Night Trips",
Artist: "Alex1",
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
// example of options 2
const APIKey = process.env.APIKEY || "your-genius-api-key";
// below player is erela.js || you can use anything.
const songTitle = player.queue.current.title;
const songArtist = player.queue.current.author;
var options = {
APIKey: APIKey,
Title: songTitle,
Artist: songArtist,
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
async () => {
try {
const albumArt = await lyricsfetchergenius.GetAlbumArt(options);
console.log(albumArt); // you can do somthing else with it other than console.log
} catch (error) {
throw error;
}
};
Using GetSong:
const lyricsfetchergenius = require("lyricsfetchergenius");
// example of options 1
var options = {
APIKey: "your-genius-api-key",
Title: "Late Night Trips",
Artist: "Alex1",
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
// example of options 2
const APIKey = process.env.APIKEY || "your-genius-api-key";
// below player is erela.js || you can use anything.
const songTitle = player.queue.current.title;
const songArtist = player.queue.current.author;
var options = {
APIKey: APIKey,
Title: songTitle,
Artist: songArtist,
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
async () => {
try {
const albumArt = await lyricsfetchergenius.GetSong(options); // returns an object
console.log(albumArt); // you can do somthing else with it other than console.log
} catch (error) {
throw error;
}
};
Using GetSongByID:
const lyricsfetchergenius = require("lyricsfetchergenius");
const songID = "368385"; // just an example
const APIKey = process.env.APIKEY || "your-genius-api-key";
async () => {
try {
const song = await lyricsfetchergenius.GetSongByID(ID, APIKey); // returns an object
console.log(song); // you can do somthing else with it other than console.log
} catch (error) {
throw error;
}
};
Using SearchSong:
const lyricsfetchergenius = require("lyricsfetchergenius");
// example of options 1
var options = {
APIKey: "your-genius-api-key",
Title: "Late Night Trips",
Artist: "Alex1",
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
// example of options 2
const APIKey = process.env.APIKEY || "your-genius-api-key";
// below player is erela.js || you can use anything.
const songTitle = player.queue.current.title;
const songArtist = player.queue.current.author;
var options = {
APIKey: APIKey,
Title: songTitle,
Artist: songArtist,
OptimizeQuery: true, // optimizes the query for best results. default is false
AuthHeader: true, // include auth header in the search request. default is false
};
async () => {
try {
let song = await lyricsfetchergenius.SearchSong(options);
console.log(song); //returns a object. you can do somthing else with it other than console.log
} catch (error) {
throw error;
}
};
FAQs
A npm package to fetch lyrics from genius api
We found that lyricsfetchergenius demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.