bard-scraper
v1.0.0
Published
This is a module from google bard written with Node.js
Downloads
12
Readme
Authentication
To authenticate yourself, please firstly:
- Go to https://bard.google.com
- Go into inspect element (Right click -> Inspect Element)
- Go to the Application tab on the top of th new tabe which has opened up (Expand it if you can't see it).
- Go to the Cookies
- 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
- @kimzzDev - Recode This Module