Socket
Socket
Sign inDemoInstall

bard-scraper

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bard-scraper

This is a module from google bard written with Node.js


Version published
Weekly downloads
8
decreased by-20%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

bard-ai

This module is edited by bard-ai

Authentication

To authenticate yourself, please firstly:

  1. Go to https://bard.google.com
  2. Go into inspect element (Right click -> Inspect Element)
  3. Go to the Application tab on the top of th new tabe which has opened up (Expand it if you can't see it).
  4. Go to the Cookies
  5. Search for '__Secure-1PSID' and enter the value in cookie.

Example Query

const Bard require("bard-scraper");

const myBard = new Bard(cookie);

myBard.ask("Hello!")
.then(console.log)

Result

creator: kimzz
result: Hello again!  It's nice to hear from you again.  How can I help you today?  Is there anything you'd like to ask, have me write, or translate for you? I'm ready for whatever you have in mind! 

Example Query And Image

const fs = require("fs")

const bard = new Bard(cookie)
const img = fs.readFileSync("./image.png")

const response = await bard.ask("jelaskan code ini", { image: img })
console.log(response)

Result

creator: kimzz
result: image itu menunjukkan seperti kode javacript yang menggunakan module y2mate untuk mendownload video

Credit

Keywords

FAQs

Last updated on 29 Dec 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc