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

Yahoo getOptionChain scraper patch following site change. #118

Closed
wants to merge 2 commits into from

Conversation

milspec
Copy link

@milspec milspec commented Aug 12, 2016

This patch addresses bug #92

Note, this patch introduces a new dependency on the "rjson" library.

Rather than scrape the HTML, this patch grabs the raw JSON for option chains from internal Yahoo URLs associated with their new AJAX framework.

If the expiration date is set, it must be accurate --- this patch provides no assistance around fixing a non-existent opex date. Further, this patch will not return results for multiple symbols or expiry dates (I think prior versions of getOptionChain might have done this).

Tested as a patch, but not as part of a package build.

Best,
Michael

@joshuaulrich
Copy link
Owner

As you can see from my commit, the required changes were fairly minor. Your complete rewrite of getOptionChain.yahoo had very little chance of being merged.

Please check with me before spending time writing code for a pull request. That way I can provide direction and hopefully prevent you from spending your time on something that won't be used.

@milspec
Copy link
Author

milspec commented Aug 25, 2016

No problem. Just trying to help.

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

Successfully merging this pull request may close these issues.

None yet

2 participants