GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Source-Code-from-Tutorials/Python/24_python.py at master · livike/Source-Code-from-Tutorials Expand file tree/ Copy path24_python.pyMore file actions 16 lines (13 loc) · 450 Bytes / Copy path24_python.pyFile metadata and controls16 lines (13 loc) · 450 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 from urllib import request goog_url = http://real-chart.finance.yahoo.com/table.csv?s=GOOG&d=2&e=8&f=2015&g=d&a=2&b=27&c=2014&ignore=.csv def download_stock_data(csv_url): response = request.urlopen(csv_url) csv = response.read() csv_str = str(csv) lines = csv_str.split("\\n") dest_url = r'goog.csv' fx = open(dest_url, "w") for line in lines: fx.write(line + "\n") fx.close() download_stock_data(goog_url) |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |