gpt4free
gpt4free copied to clipboard
phind cf_clearance and user_agent
As phind has not fixed its site yet, I still have some time till i take down code related to it, I will be adressing this issue, please read through these instructions by @joeysantana3
Disclaimer: this is what worked for me, not sure this is the right way...
If you follow the setup instructions on the main page, one of the steps is copying/moving streamlit_app.py
to the main folder and then running it. After you copy it, open up the streamlit_app.py
file in a text editor.
You should see two lines in the python script, phind.cf_clearance = ...
and phind.user_agent = ...
.
Go to https://www.phind.com/ in your web browser and open developer tools. Go to storage -> Cookies -> then select the phind.com cookie. You should see cf_clearance
in the cookie data. Copy that value and replace whats in the streamlit_app.py
file with your value. For the user_agent value, you need to copy and paste the user agent identifier of the browser you used to access the site. There are a few ways to get your browser user agent, but one way is to go to the network tab of the developer tools, select a row (may need to refresh the page), then in the Headers section you should see request header. Your user-agent is there.
end.
Note, there is a site called google.com that (wow crazy) can explain to u where you can get a cf_clearance token, just search "how to get my cf_clearance token" and you will see tutorials !!!
What if I using a docker?
The same question. I've tried to insert cf_clearance
value from PC, but it not work
The same question. I've tried to insert
cf_clearance
value from PC, but it not work
Obviously, it will not work. I'll come back with an update soon.
I am using virtual ubuntu on windows. launched program in ubuntu and trying to access site in windows browser. tried mentioned steps. didn't work
Yes, I confirm, I tried the advice without a success as well..
Never the less:
-
I edited gui/streamlit_app.py, inserted the values..
-
I edited a dockerfile:
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/xtekky/gpt4free.git
WORKDIR /gpt4free
RUN pip install --no-cache-dir -r requirements.txt
ADD gui/streamlit_app.py /gpt4free/gui
RUN cp gui/streamlit_app.py .
EXPOSE 8501
CMD ["streamlit", "run", "streamlit_app.py"]
- Then rebuilded the image..
3.. :(
the same and without a docker..
Same error, not working from localhost.
I can not find cf_clearance on my browser(Google Chrome),just cf_bm.
I can not find cf_clearance on my browser(Google Chrome),just cf_bm.
Do the 'git pull', phind is not working anymore.
I can not find cf_clearance on my browser(Google Chrome),just cf_bm.
you will find it under "Application" tab -> storage -> cookies
I can not find cf_clearance on my browser(Google Chrome),just cf_bm.
you will find it under "Application" tab -> storage -> cookies
Same i can't find it...
I can not find cf_clearance on my browser(Google Chrome),just cf_bm.
Same here. I see other cookies with cf, but not anything that says cf_clearance