[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10774":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":19,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},10774,"Bard","acheong08\u002FBard","acheong08","Python SDK\u002FAPI for reverse engineered Google Bard","",null,"Python",1400,169,1,16,0,54.69,"MIT License",true,false,"main",[23,24,25,26,27],"chatbot","google","google-bard","gpt","reverse-engineering","2026-06-12 04:00:52","# Bard \u003Cimg src=\"https:\u002F\u002Fwww.gstatic.com\u002Flamda\u002Fimages\u002Ffavicon_v1_150160cddff7f294ce30.svg\" width=\"35px\" \u002F>\nReverse engineering of Google's Bard chatbot API\n\n## Installation\n```bash\n $ pip3 install --upgrade GoogleBard\n```\n\n## Authentication\nGo to https:\u002F\u002Fbard.google.com\u002F\n\n- F12 for console\n- Copy the values\n  - Session: Go to Application → Cookies → `__Secure-1PSID` and `__Secure-1PSIDTS`. Copy the value of those cookie.\n\n## Usage\n\n```bash\n$ python3 -m Bard -h\nusage: Bard.py [-h] --session \u003C__Secure-1PSID> --session_ts \u003C__Secure-1PSIDTS>\n\noptions:\n  -h, --help         show this help message and exit\n  --session --session_ts       pass two cookies\n```\n\n### Quick mode\n```\n$ export BARD_QUICK=\"true\"\n$ export BARD__Secure_1PSID=\"\u003C__Secure-1PSID>\"\n$ export BARD__Secure_1PSIDTS=\"\u003C__Secure-1PSIDTS>\"\n$ python3 -m Bard\n```\nEnvironment variables can be placed in .zshrc.\n\nExample bash shortcut:\n```bash\n# USAGE1: bard QUESTION\n# USAGE2: echo \"QUESTION\" | bard\nbard () {\n\texport BARD_QUICK=true\n\texport BARD__Secure_1PSID=\u003C__Secure-1PSID>\n\texport BARD__Secure_1PSIDTS=\u003C__Secure-1PSIDTS>\n\tpython3 -m Bard \"${@:-$(\u003C\u002Fdev\u002Fstdin)}\" | tail -n+7\n}\n```\n\n### Implementation:\n```python\nfrom os import environ\nfrom Bard import Chatbot\n\nSecure_1PSID = environ.get(\"BARD__Secure_1PSID\")\nSecure_1PSIDTS = environ.get(\"BARD__Secure_1PSIDTS\")\nchatbot = Chatbot(Secure_1PSID, Secure_1PSIDTS)\n\nanswer = chatbot.ask(\"Hello, how are you?\")\n\nprint(answer['content']\n```\n\n### Async Implementation:\n```python\nimport asyncio\nfrom os import environ\nfrom Bard import AsyncChatbot\n\nSecure_1PSID = environ.get(\"BARD__Secure_1PSID\")\nSecure_1PSIDTS = environ.get(\"BARD__Secure_1PSIDTS\")\n\nasync def main():\n    chatbot = await AsyncChatbot.create(Secure_1PSID, Secure_1PSIDTS)\n    response = await chatbot.ask(\"Hello, how are you?\")\n    print(response['content'])\n\nasyncio.run(main())\n```\n\n## [Developer Documentation](https:\u002F\u002Fgithub.com\u002Facheong08\u002FBard\u002Fblob\u002Fmain\u002FDOCUMENTATION.md)\n\nCredits:\n- [discordtehe](https:\u002F\u002Fgithub.com\u002Fdiscordtehe) - Derivative of his original reverse engineering\n","该项目是一个针对Google Bard聊天机器人的逆向工程Python SDK\u002FAPI。它允许开发者通过Python调用Bard的功能，支持同步和异步两种实现方式，并且提供了命令行工具以便快速使用。项目的核心功能在于能够基于从浏览器中获取的特定cookie值进行身份验证后与Bard交互，从而在自己的应用中集成高级对话能力。适用于需要利用AI助手提供智能问答服务的各种场景，如客户服务自动化、个人助理软件开发等。MIT许可证下开源，确保了广泛的适用性和灵活性。",2,"2026-06-11 03:30:06","top_topic"]