-
Notifications
You must be signed in to change notification settings - Fork 142
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
"Yahoo Finance Premium instituting recaptcha #254" #255
base: master
Are you sure you want to change the base?
Conversation
Cause of the error might be that in username page contains multiple names with 'id=login-username' because of it was not able to login and resulting in error and providing us message:"Unable to login and/or retrieve the appropriate cookies. This is " most likely due to Yahoo Finance instituting recaptcha, which " this package does not support." i changed the method of finding the element to By.XPATH Signed-off-by: Samir Gorai <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #255 +/- ##
==========================================
- Coverage 93.81% 92.89% -0.93%
==========================================
Files 15 15
Lines 1359 1380 +21
==========================================
+ Hits 1275 1282 +7
- Misses 84 98 +14 ☔ View full report in Codecov by Sentry. |
@dpguthrie i think there is no pytest test script to test "headles.py" file? |
Hello @dpguthrie @me1029134 i TESTED THE CODE with my changes #255 import yahooquery as yq AND THE RESULT WAS DevTools listening on ws://127.0.0.1:64734/devtools/browser/41a2456b-89ec-4df2-b6a5-d65774e7c308 CAN YOU CHECK ONCE AT YOUR SETUP WITH YOUR id |
self. was mising Signed-off-by: Samir Gorai <[email protected]>
Signed-off-by: Samir Gorai <[email protected]>
I don't think this has anything to do with the problem - the selector still appears to work as intended. I've created a couple videos below that show the recaptcha being shown on both the master branch and your branch. The problem is that regardless of how the user gets to the next screen (By.ID or By.XPATH), a recaptcha will still be shown, which this package has no way of getting past.
|
in the below video link i am to login and not able to see the check: """ while(1): time.sleep(5) |
If you go into chrome and navigate to finance.yahoo.com, are you already logged in? If so, will you log out and then try running your script again? |
my script is using firefox browser and its not logged in . |
@dpguthrie is the i am not robot check specific for your region because i am not able to see it while logging in manually |
No idea. Knowing YF though there probably are some regional differences but using both your code and my code, I'm unable to get past the recaptcha. |
not sure why it is not working but i tried with chrome browser as well from selenium.webdriver.support.ui import WebDriverWait while(1): time.sleep(5) this code is able to log into the brower and the "i am not robot " check is not coming . |
Cause of the error might be that in username page contains multiple names with 'id=login-username' because of it was not able to login and resulting in error and providing us message:"Unable to login and/or retrieve the appropriate cookies. This is "
most likely due to Yahoo Finance instituting recaptcha, which "
this package does not support."
i changed the method of finding the element to By.XPATH