How to code a script to download file through Firefox?

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

How to code a script to download file through Firefox?

Post by oemmozillazine »

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
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: How to code a script to download file through Firefox?

Post by therube »

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...)
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
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: How to code a script to download file through Firefox?

Post by therube »

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,                           
&f=sl1&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>
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
oemmozillazine
Posts: 295
Joined: March 11th, 2014, 8:46 am

Re: How to code a script to download file through Firefox?

Post by oemmozillazine »

Thank you very much for suggestions :>
Post Reply