diff --git a/documents/README_FAQ.md b/documents/README_FAQ.md index e21a92be1..4460951df 100644 --- a/documents/README_FAQ.md +++ b/documents/README_FAQ.md @@ -18,7 +18,9 @@ Development Status :: 5 - Production/Stable ## Troubleshooting Google Account-Related Issues with Bard API -### 1 Response Error +
+ +### 1. Response Error ```python Response Error: b')]}\\'\\n\\n38\\n[[\"wrb.fr\",null,null,null,null,[8]]]\\n54\\n[[\"di\",59], [\"af.httprm\",59,\"4239016509367430469\",0]]\\n25\\n[[\"e\",4,null,null,129]]\\n'. @@ -35,7 +37,9 @@ The error you're experiencing isn't originating from the package itself; it's re Please let me know if you need further assistance. -### 2 Response Status is 429 +
+ +### 2. Response Status is 429 ``` Traceback (most recent call last): @@ -54,9 +58,33 @@ Both are not package-related issues and are unsolvable problems. It is recommend - `CAPTCHA`: a program or system intended to distinguish human from machine input, typically as a way of [thwarting](https://www.google.com/search?sca_esv=573532060&sxsrf=AM9HkKmd5Faz1q0x4sLsgIG3VgVR9V18iA:1697335053753&q=thwarting&si=ALGXSlbSiMNWMsv5Y0U_0sBS8EWzwSlNZdPczeDdDqrhgxYO86hMDzIqBVTJp6ZKxKdXeVsCSihVIJAH_MROqwPM7RtQB0OoEA%3D%3D&expnd=1) spam and automated extraction of data from websites. - `The HTTP 429`: Too Many Requests response status code indicates the user has sent too many requests in a given amount of time ("rate limiting") +
-### 3 Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'. #155 +### 3. Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'. #155 - https://github.com/dsdanielpark/Bard-API/issues/155 -### 4 Response Error: b')]}\\'\\n\\n38\\n[[\"wrb.fr\",null,null,null,null,[8]]]\\n54\\n[[\"di\",59],[\"af.httprm\",59,\"4239016509367430469\",0]]\\n25\\n[[\"e\",4,null,null,129]]\\n'. \nTemporarily unavailable due to traffic or an error in cookie values. Please double-check the cookie values and verify your network environment. #128 +
+ +### 4. Response Error: b')]}\\'\\n\\n38\\n[[\"wrb.fr\",null,null,null,null,[8]]]\\n54\\n[[\"di\",59],[\"af.httprm\",59,\"4239016509367430469\",0]]\\n25\\n[[\"e\",4,null,null,129]]\\n'. \nTemporarily unavailable due to traffic or an error in cookie values. Please double-check the cookie values and verify your network environment. #128 - https://github.com/dsdanielpark/Bard-API/issues/128 + +
+ +### 5. Using Proxy +If you cannot receive a normal response in your area, try making the request through [Crawlbase](https://crawlbase.com/)'s anonymous [smart proxy service.](https://crawlbase.com/docs/smart-proxy/get/) (Still, be mindful of Google's rate limiting, so adjust the time between requests and avoid requesting duplicate responses.) + +``` +$ pip install bardapi +``` + +```python +from bardapi import Bard +import requests + +# Get your proxy url at crawlbase https://crawlbase.com/docs/smart-proxy/get/ +proxy_url = "http://xxxxxxxxxxxxxx:@smartproxy.crawlbase.com:8012" +proxies = {"http": proxy_url, "https": proxy_url} + +bard = Bard(token='xxxxxxx', proxies=proxies, timeout=30) +bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")['content'] +```