1.0.0 • Published 5 months ago

bard-scraper v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
5 months ago

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

1.0.0

5 months ago