danielgross / whatsapp-gpt

MIT License
3.07k stars 596 forks source link

Getting past cloudflare? #22

Open theodormarcu opened 1 year ago

theodormarcu commented 1 year ago

Having some trouble getting past cloudflare. Doing some research on how to bypass it (although it looks complicated). Anyone had some luck?

So far I tried using regular chrome instead of chromium, but that didn't work out (using channel='chrome'). I'm logged in successfully on my regular chrome.

theodormarcu commented 1 year ago

Update: Current workaround is switching to Firefox instead of chromium. I am leaving this open unless (@danielgross wants to close it) in case people have found other workarounds.

Example:

# In server.py
BROWSER = PLAY.firefox.launch_persistent_context(
    user_data_dir=PROFILE_DIR,
    headless=False,
    java_script_enabled=True,
)
zakirkun commented 1 year ago

Update: Current workaround is switching to Firefox instead of chromium. I am leaving this open unless (@danielgross wants to close it) in case people have found other workarounds.

Example:

# In server.py
BROWSER = PLAY.firefox.launch_persistent_context(
    user_data_dir=PROFILE_DIR,
    headless=False,
    java_script_enabled=True,
)

Can you pr it?

theodormarcu commented 1 year ago

@zakirun Did you run into this problem as well? Don't want to PR a change that may not make sense for everyone.

thankmelater23 commented 1 year ago

I was able to get it working with firefox, but only thing is im having an issue geting it sent to my whatsapp chat . Something about send button timing out