I am using the latest FireFox and iMacro plugin on a continuously updated WinXP Pro SP3 platform.
I created two macros by manually editing a recorded session:
The first (I'll refer to it as the "TAS" download):
Code: Select all
VERSION BUILD=6600217 RECORDER=FX
TAB T=1
URL GOTO=https://www.tase.co.il/TASEEng/MarketData/RawData/FileDistribution.htm
URL GOTO=https://www.tase.co.il/FileDistribution/TargetFolder/08031101.tas
ONDOWNLOAD FOLDER=C:\My<SP>Documents\Temp\Assemble FILE=file_803_{{!NOW:yyyymmdd}}.tas WAIT=YES
ONDOWNLOAD FOLDER=C:\My<SP>Documents\Temp\Assemble FILE=file_803_{{!NOW:yyyymmdd}}.tas WAIT=YES
TAG POS=1 TYPE=A ATTR=TXT:163
And the second (I'll refer to this as the TSV download):
Code: Select all
VERSION BUILD=6600217 RECORDER=FX
TAB T=1
URL GOTO=http://www.tase.co.il/TASEEng/MarketData/SecuritiesInfo/SecuritiesInfo.htm?NRMODE=Published&NRORIGINALURL=%2fTASEEng%2fMarketData%2fSecuritiesInfo%2f&NRNODEGUID=%7b3C7B8E3F-64E3-4A38-9027-6ED04A1F6EE6%7d&NRCACHEHINT=Guest
TAG POS=1 TYPE=A ATTR=TXT:Additional<SP>Columns
TAB T=2
FRAME F=0
TAG POS=1 TYPE=IMG ATTR=SRC:http://www.tase.co.il/TASE/Images/English/Export/close_but_left.gif
TAG POS=1 TYPE=A ATTR=TXT:TSV
ONDOWNLOAD FOLDER=C:\My<SP>Documents\Temp\Assemble FILE=TASE_sec_info_{{!NOW:yyyymmdd}}.tsv WAIT=YES
ONDOWNLOAD FOLDER=C:\My<SP>Documents\Temp\Assemble FILE=TASE_sec_info_{{!NOW:yyyymmdd}}.tsv WAIT=YES
TAB T=2
TAB CLOSE
TAB T=1
The only significant difference between the two downloads I can discern is:
* The TAS (first) download is for a fully formed file placed there and downloaded as-is.
* The TSV (second) download is for an HTML table which is converted to a TSV (Tab-Separated-Values) file as a result of clicking the option. The code behind the TSV text is:
Code: Select all
<a class="ExcelLink" onclick="javascript:customWindowOpen('/TASE/Pages/Export.aspx?sn=Excelds&TblId=0&Titles=en-US_AddColTitles&Columns=en-US_AddColColumns&enumTblType=SecuritiesInfo&AddCol=1&ExportType=4', '_blank', 'scrollbars=yes; toolbar=yes; menubar=yes; resizable=yes', 800, 450);return false;"
href="javascript:void(0)">TSV</a>
Regards,
Meir