korakot / kora

Convenient tools for Colab
MIT License
269 stars 38 forks source link

JavaScript is not available. #22

Open mathiasleroy opened 2 years ago

mathiasleroy commented 2 years ago

It worked nicely a few months ago, but now it doesn't.
Can it be the update to selenium 4.1.0 ?

!pip install kora
from kora.selenium import wd

wd.get("https://www.twitter.com")
print(wd.page_source) 

JavaScript is not available. We’ve detected that JavaScript is disabled in this browser. Please enable JavaScript or switch to a supported browser to continue using twitter.com. You can see a list of supported browsers in our Help Center.

EDIT:

I tried this

options.add_argument('--disable-blink-features=AutomationControlled')

and this

options.add_argument("--enable-javascript")