Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@execaman/lyricist
Advanced tools
Readme
// ES Modules
import { Lyricist } from "@execaman/lyricist";
// Common JS
const { Lyricist } = require("@execaman/lyricist");
const lyrics = new Lyricist({
// An array of async scraper functions
// Read the last section for more info
plugins: [],
// Whether to save last successful
// fetch results. default is false
saveLastResult: false
});
// Keep it short, around 30
// characters in length
const query = "calma remix";
// Number of attempts to make
// if Google doesn't have the lyric
const attempt = 3;
// Make a request
const result = await lyrics.fetch(query, attempt);
{
song: { title: 'Calma', subtitle: 'Song by Farruko and Pedro Capó' },
info: [
{ label: 'Album:', value: 'Calma' },
{ label: 'Artists:', value: 'Pedro Capó, Farruko' },
{ label: 'Released:', value: '2018' },
{
label: 'Awards:',
value: 'Latin Grammy Award for Song of the Year, MORE'
},
{ label: 'Genres:', value: 'Latin pop, Pop' }
],
listen: [
{
source: 'Spotify',
stream: 'https://open.spotify.com/track/7FRYMm2zVVB6lpNpDWxldE?autoplay=true'
},
{
source: 'YouTube Music',
stream: 'https://music.youtube.com/watch?v=7Eo7d5_5ktI&feature=gws_kp_track'
},
{
source: 'Apple Music',
stream: 'https://music.apple.com/in/album/calma-remix/1437920278?i=1437920364'
},
{
source: 'JioSaavn',
stream: 'https://www.jiosaavn.com/song/calma-remix/Flg8AQ1-RVc?autoplay=enabled'
}
],
lyrics: 'Cuatro abrazos y un café\n' +
'Apenas me desperté\n' +
'Y al mirarte recordé\n' +
'Que ya todo lo encontré\n' +
'\n' +
'Tu mano en mi mano\n' +
'De todo escapamos\n' +
'Juntos ver el sol caer\n' +
'\n' +
"Vamos pa' la playa\n" +
"Pa' curarte el alma\n" +
'Cierra la pantalla\n' +
'Abre la Medalla\n' +
'Todo el mar Caribe\n' +
'Viendo tu cintura\n' +
'Tú le coqueteas\n' +
'Tú eres buscabulla\n' +
'Y me gusta\n' +
'\n' +
'Lento y contento, cara al viento\n' +
'Lento y contento, cara al viento\n' +
'\n' +
"Pa' sentir la arena en los pies\n" +
"Pa' que el sol nos pinte la piel\n" +
"Pa' jugar como niños, darnos cariño\n" +
'Como la primera vez que te miré\n' +
'Yo supe que estaría a tus pies\n' +
'Desde que se tocaron\n' +
'\n' +
'Calma, mi vida, con calma\n' +
'Que nada hace falta si estamos juntitos bailando\n' +
'Calma, mi vida, con calma\n' +
'Que nada hace falta si estamos juntitos andando\n' +
'Calma, mi vida, con calma\n' +
'Que nada hace falta si estamos juntitos bailando',
source: {
name: 'google.com',
url: 'https://www.google.com/search?q=calma%20remix%20lyrics'
}
}
It fetches the SERP after appending " lyrics" to the query from Google, looks for any showcased lyrics and resolves it if available; else, tries to find a result on page that it has a supported plugin for.
Note: there is a 3s delay to prevent you from spamming Google, but other sites might require a higher delay (in case there are no lyrics on page); so make sure to not make any unnecessary requests.
_
) in function names define the hostname of the site-
), while one resembles a dot (.
)So a function name like karaoke__lyrics_com
would translate to karaoke-lyrics.com
To write one yourself, you must know how it should behave:
throw
ing anythingWith AI and modern frontend frameworks, sources would eventually become unscrapable. Therefore, I do not guarantee its functionality over time or if this package will be up-to-date. This is NOT an ethical way of obtaining lyrics anyway.
FAQs
A lyric-fetcher that crawls the web, custom plugin support, no additional stuff required
The npm package @execaman/lyricist receives a total of 75 weekly downloads. As such, @execaman/lyricist popularity was classified as not popular.
We found that @execaman/lyricist demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.