Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
bandcamp-fetch
Advanced tools
A JS library for scraping Bandcamp content; inspired by bandcamp-scraper.
npm i bandcamp-fetch --save
const bcfetch = require('bandcamp-fetch');
bcfetch.discover(...).then( results => {
...
});
Each function returns a Promise which resolves to the fetched data.
Fetches albums through Bandcamp Discover.
params
(optional) - object specifying params to be passed to Bandcamp Discover
All properties are optional. Possible values for each property can be obtained with the getDiscoverOptions()
function.
options
(optional) - object specifying options to be used when formulating results:
All properties are optional. Image formats can be obtained with the getImageFormats()
function.
Fetches Bandcamp Discover options that can be passed back to discover()
.
Fetches the list of image formats used in Bandcamp.
filter
(optional) - 'artist' or 'album'. If specified, narrows down the result to include only formats applicable to the specified value.Fetches the image format that matches Id or name. If none is found, the result will be null
.
Fetches information about an artist or label.
artistOrLabelUrl
options
(optional)
Fetches the list of artists belonging to a label.
labelUrl
options
(optional)
Fetches the list of albums and standalone tracks belonging to an artist or label.
artistOrLabelUrl
options
(optional)
Fetches information about an album.
albumUrl
options
(optional)
Fetches information about a track.
trackUrl
options
(optional)
Fetches album highlights for the tag referred to by tagUrl
. The result is an array of album collections, with each collection corresponding to a highlight category such as 'new and notable' and 'all-time best selling'.
tagUrl
Tag URLs can be obtained with the getTags()
function.
options
(optional)
Fetches Bandcamp tags. The result is an object with the following properties:
tags
: non-location tagslocations
: location tagsSearches for params.query
.
params
options
(optional)
MIT
FAQs
Scrape Bandcamp content
The npm package bandcamp-fetch receives a total of 12 weekly downloads. As such, bandcamp-fetch popularity was classified as not popular.
We found that bandcamp-fetch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.