Jump to content

Automated hand search


James_H

Recommended Posts

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.

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...