JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
896 stars 214 forks source link

What is this odd request to "https://s.yimg.com/uc/finance/dd-site/js/main."? #131

Closed RiverRo closed 1 year ago

RiverRo commented 1 year ago

I'm looking at my logs and noticed DEBUG:urllib3.connectionpool:https://s.yimg.com:443 "GET /uc/finance/dd-site/js/main.e0c853d8cea2b75a5208.min.js HTTP/1.1" 200 None. I see that part of the URL is on line 168 in the etl.py code but I'm not sure what it does. I'm a little surprised by this "non-yahoo" request.

decodedcoder commented 1 year ago

I was wondering the same thing a couple of days ago when I started using this module. If you run nslookup, it shows that it's a yahoo edge server:

'Non-authoritative answer: s.yimg.com canonical name = edge.gycpi.b.yahoodns.net. Name: edge.gycpi.b.yahoodns.net Address: 69.147.82.60 Name: edge.gycpi.b.yahoodns.net Address: 69.147.82.61 '

Hope that helps.

RiverRo commented 1 year ago

@decodedcoder Thx for the explanation and a re-introduction to what was a forgotten tool for me. I see you opened #132 which was the problem that started my exploration into my logs. Cheers.