• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: parsing online data ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing online data ?


  • Subject: Re: parsing online data ?
  • From: Hermann BRILLANT <email@hidden>
  • Date: Tue, 13 Mar 2018 13:20:04 +0000

Hi

You definitely can do it with a do shell script > curl url and then parse for
the data you need, on both pages. Make a code smart enough to detect date even
if the number of lines/layout evolves.


Kind Regards

Hermann Brillant
 Apple Distribution International


> On 13 Mar 2018, at 12:24, Jean-Christophe Helary
> <email@hidden> wrote:
>
>
>
>> On Mar 13, 2018, at 20:39, Shane Stanley <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>>
>> On 13 Mar 2018, at 8:12 pm, Jim Underwood <email@hidden
>> <mailto:email@hidden>> wrote:
>>>
>>> We are both speculating about the starting conditions of the OP.
>>
>> Not totally -- he was quite specific about "most browser-agnostic".
>
> Thank you all for the suggestions and sorry for not getting back to the list
> earlier.
>
> This thing is a follow up to my "date formatting" thing I sent earlier (and
> thank you again for the very interesting suggestions).
>
> Basically I have a version number that compute from the creation date of the
> application that's on the disk, and I want to compare that to the latest
> release data that is somewhere on a web page.
>
> Just so that you see, here is the data:
> https://sourceforge.net/projects/omegat/files/OmegaT - Standard/
> <https://sourceforge.net/projects/omegat/files/OmegaT - Standard/>
> where I'm looking for "2017-12-2" (which is not as precise as a creation
> date, so I'll have to reconsider how I create my local version number, but
> it's good enough).
> I also have a similar page for the "latest" version, and a cloudbees page
> with a slightly different structure for the repository trunk.
> https://omegat.ci.cloudbees.com/job/omegat-trunk/lastBuild/
> <https://omegat.ci.cloudbees.com/job/omegat-trunk/lastBuild/>
>
> The issue I see is that if the version is checked each time the script is
> launched (which can be many times a day), the version checking must be fast
> (supposing I'm online, of course), and I don't want a browser to open just
> for that task.
>
> (on a side note, this whole thing is not only an exercise for me, I intend to
> publish it on my blog and let readers use the code in their own workflow, and
> for that I want the code to be generic, and fast enough.)
>
> So I'm really looking for something that runs quickly and runs behind the
> scene, because the whole things is not about checking versions so much as it
> is using the script to open the application from the command line (and
> Terminal is already a pain to deal with...)
>
>
>
> Jean-Christophe Helary
> -----------------------------------------------
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/>
> @brandelune
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >parsing online data ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: parsing online data ? (From: Shane Stanley <email@hidden>)
 >Re: parsing online data ? (From: Jim Underwood <email@hidden>)
 >Re: parsing online data ? (From: Shane Stanley <email@hidden>)
 >Re: parsing online data ? (From: Jim Underwood <email@hidden>)
 >Re: parsing online data ? (From: Shane Stanley <email@hidden>)
 >Re: parsing online data ? (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Re: parsing online data ?
  • Next by Date: Re: parsing online data ?
  • Previous by thread: Re: parsing online data ?
  • Next by thread: Re: parsing online data ?
  • Index(es):
    • Date
    • Thread