Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-08-02 Thread Thierry Douez via use-livecode
2017-08-02 17:54 GMT+02:00 Sannyasin Brahmanathaswami via use-livecode < use-livecode@lists.runrev.com>: > Responding on top > > Jacque's method only gets us a list, not an array, so one ends up having > to write more code to parse the list anyway, your method is more efficient. > > "not

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-08-02 Thread Sannyasin Brahmanathaswami via use-livecode
Responding on top Jacque's method only gets us a list, not an array, so one ends up having to write more code to parse the list anyway, your method is more efficient. "not comfortable with RegEx" Ha,, right. but it worth the effort to keep the little grey cells green! I will have to study

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-08-02 Thread Thierry Douez via use-livecode
2017-08-02 6:45 GMT+02:00 Sannyasin Brahmanathaswami: ​Hi Brahmanathaswami, ​ Thanks Thierry > > though I'm yet sure when using regEx this is better than using Jacque's > method > ​That's 2 different ways.. but with the regex one, you have the exact key and value of each tags, nothing more to

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-08-01 Thread Sannyasin Brahmanathaswami via use-livecode
Thanks Thierry though I'm yet sure when using regEx this is better than using Jacque's method on parseHeader pData set the lineDel to "",l)-1 of l & cr after tList end repeat -- do something with tList end parseHeader Either way it would seem prudent to extract the head first before

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-07-31 Thread Mark Wieder via use-livecode
On 07/29/2017 01:16 PM, Sannyasin Brahmanathaswami via use-livecode wrote: LOL. I guess Brahmanathaswami's been around these parts long enough by now to have OG status. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-07-31 Thread Thierry Douez via use-livecode
2017-07-29 22:16 GMT+02:00 Sannyasin Brahmanathaswami ​ : > you want to extract from the of the document the openGraph tags > > > https://www.youtube. > com/user/kauaiaadheenam"> > > https://yt3.ggpht. > com/-p766LczvKHY/AAI/AAA/SIu6ZAJbMDc/s900- >

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-07-30 Thread Sannyasin Brahmanathaswami via use-livecode
" delimiters can now be more than a single character." Hmm, that completely did not cross my mind… awesome.. On 7/29/17, 5:36 PM, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote:

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-07-29 Thread J. Landman Gay via use-livecode
Here's where it's handy that delimiters can now be more than a single character. This should extract the lines you need regardless of whether they contain carriage returns or not: on parseHeader pData set the lineDel to "",l)-1 of l & cr after tList end repeat -- do something with

Re: Parsing (scraping) OpenGraph Tags from html HEAD

2017-07-29 Thread Jonathan Lynch via use-livecode
Hi Swami, I know you can do this in Javascript, but you will have to enumerate through a JavaScript object to get all of the properties: https://www.w3schools.com/jsref/prop_meta_content.asp Sent from my iPhone > On Jul 29, 2017, at 4:16 PM, Sannyasin Brahmanathaswami via use-livecode >