I have to download a kind of bulletin which is generated DAILY, and every bulletin has a name=name+1 sequence, day-by-day.
Example:
http://www.website.com/boletin/25535/file.htm (yesterday)
http://www.website.com/boletin/25536/file.htm (today)
http://www.website.com/boletin/25537/file.htm (tomorrow, etc)
I have tryed with a macro such as:
http://www.website.com/boletin/{:25535..999999|1}/file.htm
but OE starts downloading bulletin 25535 (correct), and they tries to download 25536, which will be available tomorrow !!, and never ends.
A solution I tought was someting like a variable that represents today's date in absolute days from a certain date, and a variable offset I set. Example:
http://www.website.com/boletin/{:todaysdate + offset}/file.htm
But didn't find a macro variable that represents today's date in absolute days...
How can I solve this situation?
Thank you very much,
Pablo.
Best regards,
Oleg Chernavin
MP Staff
Yes, that :todaysdate macro variable represents today's date in absolute days from date xx/yy/zzzz.
There is a standard, for example, which is the "Julian Date". Please see:
http://en.wikipedia.org/wiki/Julian_day (with the full explanation and formulas)
http://aa.usno.navy.mil/data/docs/JulianDate.html
This standard is widely used. For example, in Google Search, if you want to specify a date range for your search, dates should be in Julian format (integer part only).
Adding or substracting an offset to this Julian Date, one can download any filename which increments on a daily basis.
Regards,
Pablo.
> There is no solution now. I cannot imagine what would :todaydate represent. Any number, so that you can offset it the way you need?
>
> Best regards,
> Oleg Chernavin
> MP Staff
Oleg.
You mean that I can download somewhere a new build with this feature ??
Thank you very much for your GREAT service !
> OK. I added support for {:julian-1000} and {:julian+1000} macros.
>
> Oleg.
http://www.metaproducts.com/download/betas/OEP2548.ZIP
Oleg.
The test URL I'm using is:
http://www.gob.gba.gov.ar/html/gobierno/diebo/boletin/{:julian-2428542}/licitaciones.htm
If the :julian variable expands to today's date (2454112), then the result should be 2454112-2428542=25570.
But OE does not download the "expanded" url:
http://www.gob.gba.gov.ar/html/gobierno/diebo/boletin/25570/licitaciones.htm
I think I'm doing an error somewhere...
Thank you,
Pablo.
> OK. Here is the updated oe.exe file:
>
> http://www.metaproducts.com/download/betas/OEP2548.ZIP
>
> Oleg.
http://www.gob.gba.gov.ar/html/gobierno/diebo/boletin/25570/licitaciones.htm
The page after the download has the following on top:
La Plata, martes 9 de enero de 2007
Perhaps, you haven't replaced the oe.exe file correctly. Please use the Help - About menu to see the version. It should be 4.5.2548 Service Release 2.
Oleg.
Thank you !!
Pablo.
> I inserted your above URL with the macro and got Offline Explorer to load it as:
>
> http://www.gob.gba.gov.ar/html/gobierno/diebo/boletin/25570/licitaciones.htm
>
> The page after the download has the following on top:
>
> La Plata, martes 9 de enero de 2007
>
> Perhaps, you haven't replaced the oe.exe file correctly. Please use the Help - About menu to see the version. It should be 4.5.2548 Service Release 2.
>
> Oleg.
Oleg.