I would like to know on how to code a script to download file through Firefox.
https://query1.finance.yahoo.com/v7/fin ... MP0afBHNwv
Does anyone have any suggestions?
Thanks in advance for any suggestions
How to code a script to download file through Firefox?
-
- Posts: 295
- Joined: March 11th, 2014, 8:46 am
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: How to code a script to download file through Firefox?
Your query relies on a cookie, so is invalid for us, so not sure what it is supposed to do.
(Anyhow, my father had something, to download stock prices from Yahoo... but I won't be able to get to it till next week, maybe...
If I remember, somewhat, he'd send a string of stock symbols, Yahoo responded back with current pricing, he'd download that information, sending that data to a [Basic] program to update...)
(Anyhow, my father had something, to download stock prices from Yahoo... but I won't be able to get to it till next week, maybe...
If I remember, somewhat, he'd send a string of stock symbols, Yahoo responded back with current pricing, he'd download that information, sending that data to a [Basic] program to update...)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: How to code a script to download file through Firefox?
Query a list of stock symbols, downloading in .csv format.
In this case, the list is hardcoded.
He started with this, quote.html.
The quote2.bbx & stock44.bbx then manipulate the data, & present it like this:
quote.html:
In this case, the list is hardcoded.
Code: Select all
http://download.finance.yahoo.com/d/quotes.csv?s=BA,C,DFCEX,DFEQX,DFIEX,DFIGX,DFISX,DFSTX,DFTEX,DVY,EZM,FBIOX,FCISX,FCNTX,FLCSX,FRESX,FSCSX,FSDIX,FSRFX,GE,HD,HDV,HON,IEDAX,IWO,IWS,IXN,JNJ,KBE,LOW,MMM,MSXAX,PFE,PHB,PPH,QQQ,SFLNX,SHAPX,TSN,VCR,VGT,VHT,VMBSX,VMRGX,VOO,VTI,VYM,XLY,&f=sl1&e=.csv
He started with this, quote.html.
The quote2.bbx & stock44.bbx then manipulate the data, & present it like this:
quote.html:
Code: Select all
<! ====== DOWNLOAD ALL THE CURRENT STOCKS ============ >
<html>
<head>
<! P Paragraph
BR Line Break
UL Tab
U Underline >
</head>
<! ==================================================================>
<body style = "background-color: #FFFF66;">
<center> <h1>
DOWNLOAD -- CURRENT -- STOCK PRICES </h1>
<br>
<! ==================================================================-->
<p><A href = "/Gui_progs/Quote333.bbx" target="_blank">
Check if the stock list has changed with Quote333.bbx
</a> </td>
<h3> <br>
Click on the highlight below to load the Current Stock Prices.
<br>
<! ======================================================================== >
<! ===== PASTE THE REVISED STOCK LIST HERE. ======================== >
<! ======================================================================== >
<a href = "http://download.finance.yahoo.com/d/quotes.csv?s=
BA,C,DFCEX,DFEQX,DFIEX,DFIGX,DFISX,DFSTX,DFTEX,DVY,EZM,FBIOX,FCISX,
FCNTX,FLCSX,FRESX,FSCSX,FSDIX,FSRFX,GE,HD,HDV,HON,IEDAX,IWO,IWS,
IXN,JNJ,KBE,LOW,MMM,MSXAX,PFE,PHB,PPH,QQQ,SFLNX,SHAPX,TSN,
VCR,VGT,VHT,VMBSX,VMRGX,VOO,VTI,VYM,XLY,
&f=sl1&e=.csv">
Click on SAVE FILE
</u></a>
<! ==================================================================>
<br> <br> <br> </u>
RUN the program called <u> 'QUOTE2.BBX' </u> which is located below.
<br>
<a href = "/Gui_progs/Quote2.bbx">
<u> Click on OPEN WITH </u></a>
<! ==================================================================>
<br> <br> <br>
Now run the STOCK PROGRAM
<br>
<! a href = "/gui_progs/Stock44.bbx">
<A href = "/gui_progs/Stock44.bbx">
STOCK44.BBX
</a>
<! ==================================================================>
<br> <br> <br>
<table align = "center" border = "3" width = "50%">
<tbody>
<tr align = "center" valign = "top">
<td style = "background-color:lightblue; font-size:16px; font-weight:bold;"><br>
If the Current Stock List has changed then Click on the highlight below.
<br>
<a href = "/Gui_progs/Quote3.bbx">
QUOTE3.BBX Click on OPEN WITH
</a><br>
Copy the List of Stocks and Paste them in <u> QUOTE1.HTM.</u>
<ul></tr></table>
<! ==================================================================>
</body>
</html>
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
-
- Posts: 295
- Joined: March 11th, 2014, 8:46 am
Re: How to code a script to download file through Firefox?
Thank you very much for suggestions :>