yahoo-finance

Import multiple CSV files from Internet into Excel

陌路散爱 提交于 2020-02-02 10:20:00
问题 I use this code to retrieve historical stock prices for about 40 tickers. I found it here http://www.mathfinance.cn/download-multiple-stock-quotes-from-yahoo-finance It downloads about half of the symbols before a Run-time Error '1004' pops up. "Unable to open http://table.finance.yahoo.com/table.csv?s=Tickersymbol&a=11&b=21&c=1998 The internet site reports that the item you requested cannot be found (HTTP/1.0 404) Can I change the code so this error won't happen? The code is below Sub Get

Cannot read response from AngularJS $resource JSONP get from Yahoo Finance

心不动则不痛 提交于 2020-01-24 01:17:41
问题 I am able to get stock prices from Google Finance using Angular JS $resource with JSONP. This is shown here: http://jsfiddle.net/8zVxH/1/ I need historical prices, which Google does not provide, but Yahoo does. I modified the above jsfiddle to this: http://jsfiddle.net/curt00/BqtzB/ Here's the code: angular.module('app', ['ngResource']); function AppCtrl($scope, $resource) { var yqlURL="http://query.yahooapis.com/v1/public/yql?q="; var dataFormat="&format=json&env=store%3A%2F%2Fdatatables.org

Python pandas datareader no longer works for yahoo-finance changed url

自作多情 提交于 2020-01-12 04:08:23
问题 Since yahoo discontinued their API support pandas datareader now fails import pandas_datareader.data as web import datetime start = datetime.datetime(2016, 1, 1) end = datetime.datetime(2017, 5, 17) web.DataReader('GOOGL', 'yahoo', start, end) HTTPError: HTTP Error 401: Unauthorized is there any unofficial library allowing us to temporarily work around the problem? Anything on Quandl maybe? 回答1: I found the workaround by "fix-yahoo-finance" in https://pypi.python.org/pypi/fix-yahoo-finance

Yahoo YQL get data using sql query for different stock exchanges

谁说胖子不能爱 提交于 2020-01-05 07:30:28
问题 hot to get nasdaq, Dow Jones,S&P 500, Nikkei 300 from yahoo apl. select * from yahoo.finance.quotes where symbol in ("^IXIC") not work. 回答1: You have to use different tables for stock exchange... You can use any of the 2 options below, select * from yahoo.finance.quoteslist where symbol= '^IXIC' OR select * from yahoo.finance.quoteslist where symbol in ('^GSPC','^IXIC') 来源: https://stackoverflow.com/questions/19688567/yahoo-yql-get-data-using-sql-query-for-different-stock-exchanges

Web scraping of Yahoo Finance statistics using BS4

≯℡__Kan透↙ 提交于 2020-01-04 10:58:27
问题 I am new to Python programming, but I have found some different code snippets and have compiled them into the code underneath. The Python script are returning all the right HTML values, from the summary array but no values from the statistics array, because the values don't get matches. I don't know how to extract the values on the statistics pane on Yahoo Finance. Its referred to as url2, and key_stats_on_stat. I hope you are willing to help me out. import os, sys import csv from bs4 import

How do pages like Yahoo Finance update page without plugins etc? (HTTP PUSH)

自古美人都是妖i 提交于 2020-01-04 06:09:18
问题 I am interested in HTTP PUSH technologies. I am interested in the technology behind pages like Yahoo Finance etc, which are able to update the page with data in real time. When I checked the FF console, there are no periodic POSTs from the client which suggests that the client is not polling, rather it is having data PUSHed to it. I then checked the page source - (AFAICT) they are NOT: using a java applet using a hidden iframe using any custom client side JS library (like APE etc) So HOW are

Scrape Yahoo Finance Income Statement with Python

巧了我就是萌 提交于 2019-12-30 10:05:05
问题 I'm trying to scrape data from income statements on Yahoo Finance using Python. Specifically, let's say I want the most recent figure of Net Income of Apple. The data is structured in a bunch of nested HTML-tables. I am using the requests module to access it and retrieve the HTML. I am using BeautifulSoup 4 to sift through the HTML-structure, but I can't figure out how to get the figure. Here is a screenshot of the analysis with Firefox. My code so far: from bs4 import BeautifulSoup import

Scrape Yahoo Finance Income Statement with Python

房东的猫 提交于 2019-12-30 10:04:49
问题 I'm trying to scrape data from income statements on Yahoo Finance using Python. Specifically, let's say I want the most recent figure of Net Income of Apple. The data is structured in a bunch of nested HTML-tables. I am using the requests module to access it and retrieve the HTML. I am using BeautifulSoup 4 to sift through the HTML-structure, but I can't figure out how to get the figure. Here is a screenshot of the analysis with Firefox. My code so far: from bs4 import BeautifulSoup import

Download history stock prices automatically from yahoo finance in python

痴心易碎 提交于 2019-12-28 07:17:48
问题 Is there a way to automatically download historical prices of stocks from yahoo finance or google finance (csv format)? Preferably in Python. 回答1: Short answer: Yes. Use Python's urllib to pull the historical data pages for the stocks you want. Go with Yahoo! Finance; Google is both less reliable, has less data coverage, and is more restrictive in how you can use it once you have it. Also, I believe Google specifically prohibits you from scraping the data in their ToS. Longer answer: This is

Yahoo Finance Historical data downloader url is not working

陌路散爱 提交于 2019-12-28 02:53:13
问题 I have used the following url to fetch the historical data from yahoo finance. From last 16th May, 2017 the url is not working. http://real-chart.finance.yahoo.com/table.csv?s=AAL&a=04&b=01&c=2017&d=04&e=02&f=2017&g=d&ignore=.csv Seems like they have changed the url and the new url is: https://query1.finance.yahoo.com/v7/finance/download/AAL?period1=1494873000&period2=1494959400&interval=1d&events=history&crumb=l0aEtuOKocj In the above changed URL has a session cookie which is crumb. Is there