
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
fetch-the-parrot
Advanced tools
A small JS client to handle fetching the ever-loved Party Parrots (of all varieties).
npm i fetch-the-parrot --save
yarn add fetch-the-parrot
var getParrotGif = require('fetch-the-parrot').getParrotGif;
var parrot = getParrotGif({
'name': 'Parrot',
'res': 'hd',
'path': 'http://my-parrot-website.com/parrots/'
})
console.log(parrot)
/* Result */
http://my-parrot-website.com/parrots/parrots/hd/parrot.gif
import getParrotGif from 'fetch-the-parrot'
getParrotGif({
'name': 'Fiesta Parrot',
'path': 'http://my-parrot-website.com/parrots/'
}, gif => {
console.log(gif)
/* Result */
http://my-parrot-website.com/parrots/parrots/fiestaparrot.gif
})
This library exposes 3 methods in total.
So far we've seen getParrotGif
in the above snippets, but getParrotsJSON
& searchParrotsByName
are also available. Let's run over all 3 methods in more detail:
getParrotGif(options, callback)
: This is the primary (default) method, used to return a partyparrot's gif URL.
options object
name string
: Party parrot's name, case insensitive (use names as labelled here).
res string
: The resolution for our gif, sd
(default) or hd
. Note, not all party parrots have HD support, in the case of a hd request on an "sd-only" parrot, the SD version will be returned.
path string
: Optional string to set the path of where the party parrot images are located.
callback(gif) function
: Returns the gif URL if successful.
getParrotsJSON(callback)
: Returns the main json object of all parrots.
function
: Returns json object if successful.searchParrotsByName(name, callback)
: Returns the single object for a parrot.
name string
: Name, case insensitive, of the parrot we're searching for (use names as labelled here).
callback(data) function
: Returns json object for queried parrot if successful.
FAQs
Javascript library for fetching PartyParrot(s)
We found that fetch-the-parrot 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.