BBO Discussion Forums: Automated hand search - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Automated hand search

#1 User is offline   James_H 

  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 2007-February-08
  • Location:Dublin, Ireland

Posted 2020-December-31, 12:31

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.
0

#2 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 20,763
  • Joined: 2004-August-21
  • Gender:Male

Posted 2021-January-03, 17:18

Login is done through a separate script

https://www.bridgeba...hands_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.

#3 User is offline   James_H 

  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 2007-February-08
  • Location:Dublin, Ireland

Posted 2021-January-04, 14:55

Thanks Barry
0

#4 User is offline   cielaczek 

  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 2021-May-24

Posted 2021-May-24, 09:28

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users