MozillaZine

How to code a script to download file through Firefox?

User Help for Mozilla Firefox
oemmozillazine
 
Posts: 245
Joined: March 11th, 2014, 8:46 am

Post Posted May 19th, 2017, 6:59 pm

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

therube

User avatar
 
Posts: 17308
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted May 19th, 2017, 9:31 pm

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...)
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

User avatar
 
Posts: 17308
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted May 23rd, 2017, 9:37 am

Query a list of stock symbols, downloading in .csv format.
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

Image

He started with this, quote.html.
Image

The quote2.bbx & stock44.bbx then manipulate the data, & present it like this:
Image

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,                           
&amp;f=sl1&amp;e=.csv">                                           
                                                                   
                                 
                                                                                 

Click on &nbsp; &nbsp; SAVE FILE
</u></a>

<! ==================================================================>

<br> <br> <br> </u>
RUN the program called  &nbsp;&nbsp; <u> 'QUOTE2.BBX' </u>  &nbsp;&nbsp; which is located below.
<br>
<a href = "/Gui_progs/Quote2.bbx">
<u>        Click on &nbsp; &nbsp; 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  &nbsp; &nbsp;&nbsp; &nbsp; Click on &nbsp; &nbsp; OPEN WITH
</a><br>
Copy the List of Stocks and Paste them in &nbsp; &nbsp; <u> QUOTE1.HTM.</u>
<ul></tr></table>

<! ==================================================================>

</body>
</html>
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

oemmozillazine
 
Posts: 245
Joined: March 11th, 2014, 8:46 am

Post Posted May 23rd, 2017, 8:01 pm

Thank you very much for suggestions :>

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 14 guests