
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
nb-scraper
Advanced tools
A comprehensive TypeScript scraper library by NB Team that provides easy-to-use functions for interact with various scraper service from NB Scripts.
daffa |
Fongsi |
Alex |
Lemon |
NajmyW |
Yogi Priyan Perdana |
Puruu Puruu |
Yosh Casaster |
nusanhuh |
[!NOTE] If your name appears in the repository’s
app/scrapers
folder, submit your GitHub username via an issue or pull request to be added to this contributor list.
Untuk update terbaru, dukungan, dan sumber daya scraping terbaik, ikuti saluran resmi kami:
NB SCRAPER di WhatsApp:
Join Channel
This project is designed to be easy to use. Visit the WhatsApp Channel for the code resources
app/scrapers/
app/types.ts
integration-tests/
(optional)Pro Tip: Join our WhatsApp Channel for contribution support!
[!IMPORTANT] If you encounter an error while using the library or are confused about adding your own scraper, feel free to open an issue.
Using npm:
npm install nb-scraper
Using yarn:
yarn add nb-scraper
Using pnpm:
pnpm add nb-scraper
import { generateDeepInfraResponse } from 'nb-scraper';
const result = await generateDeepInfraResponse({
prompt: "Explain JavaScript in simple terms",
model: "deepseek-ai/DeepSeek-R1"
});
if (result.status) {
console.log(result.data.response);
}
const { generateDeepInfraResponse } = require('nb-scraper');
// Same usage as above
(async () => {
const result = await generateDeepInfraResponse('What the meaning of Pahlawan Indonesia?');
console.log(result);
})();
[!TIP] For detailed functions and examples, see the documentation at nb-scraper.js.org
NB Scraper is designed to never throw errors. Instead, all functions return a response object with a status
field:
const result = await generateDeepInfraResponse('test query');
if (result.status) {
// Success - use result.data
console.log(result.data.response);
} else {
// Error - check result.error
console.error(result.error);
}
NETWORK_ERROR
: Connection, timeout, or server issues
INVALID_INPUT
: Invalid parameters or URL format
INVALID_RESPONSE
: Unexpected response format from API
RATE_LIMITED
: Rate limiting or quota exceeded
SERVICE_UNAVAILABLE
: Service temporarily unavailable
See the ERROR TYPES
See The scrapers folder
This project is licensed under the Unlicense – see the LICENSE file for details.
FAQs
Community scraper library by Newbie Scrape
The npm package nb-scraper receives a total of 163 weekly downloads. As such, nb-scraper popularity was classified as not popular.
We found that nb-scraper 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.