@juicyllama/nestjs-scrapingbee
v0.0.5
Published
A NestJS app for integrating with Scrapingbee API
Keywords
Readme
Install
npm i @juicyllama/nestjs-scrapingbeeUsage
- Add your
SCRAPINGBEE_API_KEYto your .env file - Add the module to your NestJs App
import { ScrapingBeeModule } from '@juicyllama/nestjs-scrapingbee'
@Module({
imports: [ScrapingBeeModule]
})- Add the service to your code
import { ScrapingBeeService } from '@juicyllama/nestjs-scrapingbee'
export class ExampleClass {
constructor(private readonly scrapingBeeService: ScrapingBeeService) {}
async message(options: SpbConfig) {
try {
return await this.scrapingBeeService.scrape(options);
} catch (e) {
console.log(e);
}
}
}