Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
stellarscrape
Advanced tools
The Stellarscrape ApiClient is an npm package designed to interact with the Stellarscrape API, allowing you to search for Amazon products and retrieve detailed product information across supported Amazon marketplaces. To use this package, obtain an API key by subscribing at StellarScrape.com.
Install the Stellarscrape client via npm:
npm install stellarscrape
To start using the Stellarscrape client, import the StellarScrape
class, initialize it with your API key, and use the methods provided to search for products or fetch product details.
const { StellarScrape } = require('stellarscrape');
const stellarScrape = new StellarScrape("YOUR_API_KEY");
Retrieve details for a specific product based on its Amazon Standard Identification Number (ASIN).
stellarScrape.getAmazonProduct("B0DGHN7913", ["fr"], "fr")
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
Parameters:
asin
(string): The ASIN of the product.countries
(array of supportedCountry): List of country codes to fetch data from (e.g., ["fr"]
).userCountry
(supportedCountry): The country code for the user.Search for products on Amazon across multiple supported locales using a query string.
stellarScrape.searchAmazonProducts("iphones", ["fr", "it", "es", "de"], "fr", 10, 0)
.then((data) => {
data.data.searchData.productsData.forEach((product) => console.log(product));
})
.catch((err) => {
console.log(err);
});
Parameters:
query
(string): Search term (e.g., "iphones"
).countries
(array of supportedCountry): List of countries to search in (e.g., ["fr", "it", "es", "de"]
).userCountry
(supportedCountry): The primary country for the user.amount
(number, optional): Number of results per page (default is 10).startAt
(number, optional): The starting index of the results (default is 0).Retrieve details for multiple products in one request by providing an array of ASINs.
stellarScrape.getAmazonMultipleProducts(["B09G9HWQYT", "B07F81WWKP"], ["fr"], "fr")
.then((data) => {
console.log(data.data);
})
.catch((err) => {
console.log(err);
});
Parameters:
asinArray
(array of strings): Array of ASINs (up to 100 per request).countries
(array of supportedCountry): List of country codes (e.g., ["fr"]
).userCountry
(supportedCountry): The user's country code..catch()
to handle potential API request issues.FAQs
The apiWrapper for the StellarScrape API
The npm package stellarscrape receives a total of 4 weekly downloads. As such, stellarscrape popularity was classified as not popular.
We found that stellarscrape 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.