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

SocketError: Failed to open TCP connection to download.finance.yahoo.com:80 #12

Open
Victorcorcos opened this issue Jun 20, 2021 · 2 comments

Comments

@Victorcorcos
Copy link

Steps to reproduce 🦮

  1. Add gem "ystock", "~> 0.4.14" to Gemfile
  2. bundle install
  3. rails c
  4. execute this...
Ystock.quote("aapl")

The result 🪲

SocketError: Failed to open TCP connection to download.finance.yahoo.com:80 (getaddrinfo: nodename nor servname provided, or not known)
from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect'
Caused by SocketError: getaddrinfo: nodename nor servname provided, or not known
from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/net/http.rb:937:in `initialize'
@wakproductions
Copy link
Contributor

Yahoo deprecated the API - this gem just no longer works because the API can no longer be publicly queried. You might be able to do it by starting a session on the web page, but this gem is set up for the old way the API worked.

@Victorcorcos
Copy link
Author

Victorcorcos commented Jun 20, 2021

@wakproductions Yeah! I noticed this

Too bad 😢
At least 30 gems are deprecated now!

I'm investigating here to see if there is at least one gem alive that can fetch stocks data on the Stock Market... 😆

  • Deprecated gems
  1. https://github.com/tyrauber/stock_quote ❗ (Need to pay)
  2. https://github.com/ankit8898/highstocks-rails ❓(email sent)
  3. https://github.com/timknight/stock_grabber
  4. https://rubygems.org/gems/bovespa-prices
  5. https://github.com/hamorim/bovesparb
  6. https://github.com/KlotzAndrew/yafa
  7. https://github.com/cpankaj/yquotes
  8. https://github.com/whitethunder/ticker_fetcher
  9. https://www.rubydoc.info/gems/yahoofinance-symbolsuggest/0.1.0
  10. https://github.com/tmb41/tylor-cli-gem
  11. https://github.com/pjlegato/yahoofinance-typhoeus
  12. https://www.rubydoc.info/gems/yahoo_finance_2/1.0.0
  13. https://rubygems.org/gems/gstock
  14. https://github.com/dansimpson/ticker
  15. https://github.com/Swimminschrage/edgar-stocks
  16. https://github.com/nizardhamani/quotes
  17. https://rubygems.org/gems/stocks
  18. https://github.com/gregwinn/ystock
  19. https://rubygems.org/gems/equities
  20. https://github.com/tbloncar/stock_quote_cli
  21. https://github.com/craft-machine/stock_markets
  22. https://github.com/unieagle/stock_history
  23. https://github.com/brujeo/stock_recommendation
  24. https://github.com/nas/yahoo_stock
  25. https://github.com/seixasfelipe/bovespa-ingestion
  26. https://github.com/alegomes/bovespa
  27. https://github.com/pirelenito/bovespa_historical
  28. http://www.transparentech.com/projects/yahoofinance
  29. https://github.com/ShallmentMo/ruby_backtest

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