Skip to content
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

way to authenticate without yahoofantasy login? #48

Open
prestonlam53 opened this issue Nov 30, 2022 · 1 comment
Open

way to authenticate without yahoofantasy login? #48

prestonlam53 opened this issue Nov 30, 2022 · 1 comment

Comments

@prestonlam53
Copy link

Hi,

I'm trying to use a VM to automatically get data at a consistent schedule. I'm having issues logging in to yahoofantasy on the VM because it doesn't have a desktop interface or browser. Is there a way to skip logging in to yahoofantasy via browser and just use some sort of oauth token programatically?

@mattdodge
Copy link
Owner

AFAIK Yahoo doesn't provide any way to do a purely server-side OAuth authentication. However, what you could do is log in on your local machine, grab your access token and refresh token, and then toss those up onto your headless VM.

The easiest way to do this is probably just by copying the .yahoofantasy file from your local machine to the directory on the remote machine where you run the yahoo fantasy commands. This is the persistence file for the library and contains the tokens needed to authenticate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants