Skip to content

API Key Discussion #128

Answered by DesiPilla
kylewest520 asked this question in ESPN API
Sep 23, 2020 · 5 comments · 12 replies
Discussion options

You must be logged in to vote

I was also struggling with this, but I believe I have found a work-around for it. I wrote a function get_credentials() that uses Selenium to open up a browser where a user can log in (the default chrome profile is used, which may log the user in automatically if they have used espn.com recently). The swid and espn_s2 cookies are then fetched automatically and can be stored for future use.

I tried getting selenium to locate the login fields, but wasn't having much luck. Ideally, this could automate this process without requiring user interaction. This could potentially improve the function.

I hope this helps you. I'll leave it up to you on how/where would be best to integrate this into you…

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
6 replies
@kylewest520
Comment options

@cwendt94
Comment options

@cwendt94
Comment options

@kylewest520
Comment options

@cwendt94
Comment options

Comment options

You must be logged in to vote
1 reply
@cwendt94
Comment options

Comment options

You must be logged in to vote
2 replies
@cwendt94
Comment options

@kylewest520
Comment options

Comment options

You must be logged in to vote
1 reply
@cwendt94
Comment options

Answer selected by cwendt94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants