James_H Posted December 31, 2020 Report Share Posted December 31, 2020 Hi, I'm trying to download my hands for the last year using a Python script without success. The issue I'm having is getting past the login. Here is my code snippet- import requests payload = {'username': 'James_H', 'password': 'MyCrypticPassword'} url = 'https://www.bridgebase.com/myhands/index.php' with requests.Session() as s: r = s.post(url, data=payload) cookie = {'PHPSESSID': requests.utils.dict_from_cookiejar(s.cookies)['PHPSESSID']} print(r.text) The resulting response is the login page instead of taking me to the hand search feature. Any help appreciated.Regards, James. Quote Link to comment Share on other sites More sharing options...
barmar Posted January 3, 2021 Report Share Posted January 3, 2021 Login is done through a separate script https://www.bridgebase.com/myhands/myhands_login.php Once it authenticates you, it redirects back to index.php. broze has recently written a PHP script that successfully logs into myhands (after I helped him fix a couple of bugs). Contact him and maybe he'll share his code with you. Quote Link to comment Share on other sites More sharing options...
James_H Posted January 4, 2021 Author Report Share Posted January 4, 2021 Thanks Barry Quote Link to comment Share on other sites More sharing options...
cielaczek Posted May 24, 2021 Report Share Posted May 24, 2021 Hi James. Did you manage to log into MyHands site?I'm looking for a code to login and download my lin files. Best regards.Artur Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.