Skip to content

A simple price comparison application that uses the open-source Unofficial Google Bard API Python library.

Notifications You must be signed in to change notification settings

zainmz/Product-Price-Comparison-Bard-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Product-Price-Comparison-Bard-API

This is a test Python application using the open source Google Bard API Library that allows a user to upload a csv file of products and the lowest price of each product is prompted using the Bard API, finally the filtered results are returned which include the price and site link.

price comparison

The open source Bard-API created by Antonio Cheong, Daniel Park can be found here:

https://github.com/dsdanielpark/Bard-API/tree/main

Instructions on Usage

  1. Clone or Download repository

  2. You will have to replace (Line 8) the "XXXXX" with your __Secure-1PSID cookie

image

  1. Cookie Instruction
  • Visit https://bard.google.com/
  • F12 for console
  • Session: Application → Cookies → Copy the value of __Secure-1PSID cookie.
  • Paste the value in the location mentioned at step 2
  1. Edit Prompt for Localisation

This script was created for the Sri lankan market by mentioning specifically the country in the prompt, you can change the prompt on Line 29

image

  1. CSV File Format I've used a format for the CSV file as below

image

Releases

No releases published

Packages

No packages published

Languages