Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.har file for you.com #1936

Closed
amjiddader opened this issue May 9, 2024 · 18 comments
Closed

.har file for you.com #1936

amjiddader opened this issue May 9, 2024 · 18 comments
Assignees
Labels
bug Something isn't working

Comments

@amjiddader
Copy link

amjiddader commented May 9, 2024

  • you.com issue / need .har file

Bug description
When we use you.com it does work if we have nodriver and if we use Proxy or VPN it fails because of captcha.

So how can we create a .har file you.com
I tried to use .har file in ./har_and_cookies/you.com.har
I do not know which file we need to take .har i tried almost all but it never worked.

  • error / File "/usr/local/lib/python3.10/dist-packages/g4f/Provider/you/har_file.py", line 87, in get_telemetry_ids
    raise MissingRequirementsError('Add .har file from you.com or install "nodriver" package | pip install -U nodriver')

Can anyone tell me how to and for which link / file in you.com i have to capture .har ( without nodriver

Note: I dont want to use nodrver (Thats working)

Error log: https://gist.githubusercontent.com/amjiddader/626c913d2e39d58594ba5604471ca16f/raw/e86b9f8c0fd634462c711c90dd6ae581f2d42b7b/error.log

you.com.har: https://gist.githubusercontent.com/amjiddader/2542e82121b8c008821cd0eb122a8c25/raw/ab9c96ccc44565d4d1ceb941b1ca6f2d21da9b1f/you.com.har

@amjiddader amjiddader added the bug Something isn't working label May 9, 2024
@Anonymous6598
Copy link

Did you install nodriver?

@Anonymous6598
Copy link

Because it's missing

@amjiddader
Copy link
Author

Did you install nodriver?

Its working with nodriver i dont want to use nodrive.

@Anonymous6598
Copy link

Well, in error message nodriver was mentioned. My advice - just install nodriver instead of playing with .har file. Or use another provider, which doesn't need .har files.

@Anonymous6598
Copy link

Maybe this article can help: https://www.stackpath.com/edge-academy/what-is-a-har-file/

@Anonymous6598
Copy link

It is connected with .har files

@Anonymous6598
Copy link

Use chrome, firefox, opera or edge utility for creating specific .har file for url you.com

@amjiddader
Copy link
Author

Use chrome, firefox, opera or edge utility for creating specific .har file for url you.com

I actually have included have included .har file it is supposed to work.
Because its correct.
If we use bing har file with same steps thats working fine . Taking cookie from har and works.

But when it comes to you.com .har file seems valid and i have exported from chrome and Mozilla does not work.

Also just to mention its working with if we install nodriver but, i want to use without nodriver.

Thanks

@Anonymous6598
Copy link

Maybe it's a bug

@Anonymous6598
Copy link

Have you tried exporting from edge?

@Anonymous6598
Copy link

Or change utility. Or switch to another g4f api version

@amjiddader
Copy link
Author

Or change utility. Or switch to another g4f api version

Tried getting .har from edge.. Does not work.
I was trying to make you.com work..

Others are working fine.

@Anonymous6598
Copy link

What browser do you use? Use .har utility for you browser. My suggestion - use firefox developer edition. It might work.

@Anonymous6598
Copy link

Or try opera

@amjiddader
Copy link
Author

Never mind i got it working.
Here is how

Logout or use private TAB
Open Developer Mode first then open you.com
Once website is fully loaded, Login (in private mode make sure you are logged out)
Switch to any different model i.e: gemini or gpt4
Start a chat , ask anything.
Export .har ( Browser does not matter)

PS: I tried exporting without switching models it did not worked.
But following above methods > Now its working.

Thanks @Anonymous6598

@amjiddader
Copy link
Author

What browser do you use? Use .har utility for you browser. My suggestion - use firefox developer edition. It might work.

That does not metter, ( maybe for BING Designer that might make sense using Edge.
Now its working and i guess we should close this issue.

@Anonymous6598
Copy link

Your welcome. I'm glad that I helped you.

@amjiddader
Copy link
Author

Closing this now..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants