We are working with =[middle] to give it more power. What would you like to get in the next vers=ion? I took note of the "startbefore" and "endafter" op=tions suggested few days ago, but I am interested if someone has more ideas=.- Chris=I=E2=80=99ve always wondered if startafter and endafter were val=id options but never got round to testing. [Middle] has never really done w=hat I thought it should.Cheers<=/div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve C=raig - Asylum InteractiveTel +44 1330 860550==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=Email: steve@asylu=mweb.comSkype: s.craig - iChat: steve.craig=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DOn 22 Jan 2015, at 21:29, David Bas=tedo <david@10plu=s1.com> wrote:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usd.=none of these will stop anyt=hing past the endpoint from displaying....=C2=A0 any ideas?andasthis= I get the same result : Theoretica=lly, I should be able to stop middle on the first quot that it runs into, a=s opposed to " / and I'd take />, but this breaks middle:If I url the start and end, I =get the same result - no stoppage.regardless, it isn't working and it is= returning the rest of the page after the place where it is supposed to sto=p. It is not stopping.and ideally=, I want to use: " / as my end point.by using : property=3D="og:title" as my starting pointFor EndBefore, the docs say: String of tex=t characters to search for defining the end of the text to=20be returned. All following text (and the EndBefore text itself) will be=20ignored. --> this suggests that it should ignore everything after this, =including the stop token itself.so, the block I am trying to =remove: <meta property=3D"og:title" content=3D"Toro=nto Star copyeditor edits memo announcing the elimination of copyeditor job=s" />
According to= the docs, I should then get: content=3D"Toronto St=ar copyeditor edits memo announcing the elimination of copyeditor jobs
[text]theOutPut=3D[tcpcon=nect host=3Dboingboing=.net][!]
[/!][tcpsend skipheader=3DT]GET /2009/11/07/toronto-star-co=pyedi.html HTTP/1.0[!]
[/!][UnURL]%0D%0A[/Unurl]Host: boingboing.net[UnURL]%0D%0A%0D%0A[/U=nURL][UnURL]%0D%0A[/Unurl][!]
[/!][/tcpsend][/tcpconnect][/text]
=[text]myProp2=3D[middle startafter=3D[url]property=3D"og:image"[/=url]&endbefore=3D[url]" /[/url]][theOutPut][/middle][/text]=C2=A0 =
myProp2: [myProp2]<br />
[middle startafter=3D[url]property=3D"og:image"[/url]&endbe=fore=3D[url]/>[/url]][theOutPut][/middle]
[middle startafter=3D[url]property=3D"og:i=mage"[/url]&endbefore=3D[url]/[/url]][theOutPut][/middle]
[middle startafter=3D[url]property=3D&=quot;og:image"[/url]&endbefore=3D[url]" /[/url]][theOutPut][/=middle]
[middle startafter=3D=[url]property=3D"og:image"[/url]&endbefore=3D[url]"[/url=]][theOutPut][/middle]On Thu, Jan 22, 2015 at 2:24 PM, Kenneth =Grome <ken@webdnasolutions.com> wrote:endbefore works from the end of the specified text, thus= you
should expect this:
=C2=A0content=3D"Toronto Star copyeditor edits memo announcing the
elimination of copyeditor jobs" />
<meta property=3D"og:description" content=3D"" />=
<meta property=3D"og:url"
content=3D"http://boingboing.net/2009/11/07/toronto-star=-copyedi.html"
/>
<meta property=3D"og:image"
content=3D"http://craphound.com/images/torstarsubsnit.jpeg"=;
Regards,
Kenneth Grome
WebDNA Solutions
http://www.we=bdnasolutions.com
Web Database Systems and Linux Server Management
On 01/22/2015 12:52 PM, David Bastedo wrote:
> Is there somebody who can shed some light on the proper use of
> [middle]. It's not behaving as I would expect.
>
> I am attempting to extract open graph meta data from html after
> grabbing it via [tcpconnect]
>
> so here is a sample of what I want to extract:
>
> <meta property=3D"og:type" content=3D"article" =/>
> <meta property=3D"og:title" content=3D"Toronto Star =copyeditor edits memo announcing the elimination of copyeditor jobs" /=>
> <meta property=3D"og:description" content=3D"" =/>
> <meta property=3D"og:url" content=3D"h=ttp://boingboing.net/2009/11/07/toronto-star-copyedi.html" />> <meta property=3D"og:image" content=3D"http://cra=phound.com/images/torstarsubsnit.jpeg" />
>
> given this code:
> [text]theOutPut=3D[tcpconnect host=3Dboingboing.net <http://boingboing.net>][!]
> [/!][tcpsend skipheader=3DT]GET /2009/11/07/toronto-star-copyedi=.html HTTP/1.0[!]
> [/!][UnURL]%0D%0A[/Unurl]Host: boingboing.net <http://boingboing.net>[UnURL]%0D%0A%0D%0A[/UnU=RL][UnURL]%0D%0A[/Unurl][!]
> [/!][/tcpsend][/tcpconnect][/text]
>
> [text]myProp=3D[middle startafter=3Dproperty=3D"og:title"&am=p;endbefore=3D" /][theOutPut][/middle][/text]
>
> myProp: [myProp]<br />
>
> I would expect MyPprop to return:=C2=A0 =C2=A0content=3D"Toronto =Star copyeditor edits memo announcing the elimination of copyeditor jobs
>
> but, it is returning: myProp: content=3D"Toronto Star copyeditor<=br>> edits memo announcing the elimination of copyeditor jobs" /> a=nd
> the rest of the page
>
> If I url everything, it doesn't work at all. Theoretically, middle=
> is built for exactly this purpose and I should be able to run a
> series of Middles to extract specific og tags that I pre-describe.
>
> i'm using 6.2
>
> Thanks in advance!
>
> d.
>
>
>
> --------------------------------------------------------- This<=br>> message is sent to you because you are subscribed to the mailing
> list . To unsubscribe, E-mail to: archives:
> http://mail.webdna.us/list/talk@webdna.us Bug Reporting:
> support@webdna.=us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
--David Bastedo
<=div>
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
Ten Plus One Communications Inc.http://www.10plus1.c=om
416.277.4499
We are working with =[middle] to give it more power. What would you like to get in the next vers=ion? I took note of the "startbefore" and "endafter" op=tions suggested few days ago, but I am interested if someone has more ideas=.- Chris=I=E2=80=99ve always wondered if startafter and endafter were val=id options but never got round to testing. [middle] has never really done w=hat I thought it should.Cheers<=/div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve C=raig - Asylum InteractiveTel +44 1330 860550==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=Email: steve@asylu=mweb.comSkype: s.craig - iChat: steve.craig=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DOn 22 Jan 2015, at 21:29, David Bas=tedo <david@10plu=s1.com> wrote:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usd.=none of these will stop anyt=hing past the endpoint from displaying....=C2=A0 any ideas?andasthis= I get the same result : Theoretica=lly, I should be able to stop middle on the first quot that it runs into, a=s opposed to " / and I'd take />, but this breaks middle:If I url the start and end, I =get the same result - no stoppage.regardless, it isn't working and it is= returning the rest of the page after the place where it is supposed to sto=p. It is not stopping.and ideally=, I want to use: " / as my end point.by using : property=3D="og:title" as my starting pointFor EndBefore, the docs say: String of tex=t characters to search for defining the end of the text to=20be returned. All following text (and the EndBefore text itself) will be=20ignored. --> this suggests that it should ignore everything after this, =including the stop token itself.so, the block I am trying to =remove: <meta property=3D"og:title" content=3D"Toro=nto Star copyeditor edits memo announcing the elimination of copyeditor job=s" />
According to= the docs, I should then get: content=3D"Toronto St=ar copyeditor edits memo announcing the elimination of copyeditor jobs
[text]theOutPut=3D[tcpcon=nect host=3Dboingboing=.net][!]
[/!][tcpsend skipheader=3DT]GET /2009/11/07/toronto-star-co=pyedi.html HTTP/1.0[!]
[/!][unurl]%0D%0A[/Unurl]Host: boingboing.net[unurl]%0D%0A%0D%0A[/U=nURL][unurl]%0D%0A[/Unurl][!]
[/!][/tcpsend][/tcpconnect][/text]
=[text]myProp2=3D[middle startafter=3D[url]property=3D"og:image"[/=url]&endbefore=3D[url]" /[/url]][theOutPut][/middle][/text]=C2=A0 =
myProp2: [myProp2]<br />
[middle startafter=3D[url]property=3D"og:image"[/url]&endbe=fore=3D[url]/>[/url]][theOutPut][/middle]
[middle startafter=3D[url]property=3D"og:i=mage"[/url]&endbefore=3D[url]/[/url]][theOutPut][/middle]
[middle startafter=3D[url]property=3D&=quot;og:image"[/url]&endbefore=3D[url]" /[/url]][theOutPut][/=middle]
[middle startafter=3D=[url]property=3D"og:image"[/url]&endbefore=3D[url]"[/url=]][theOutPut][/middle]On Thu, Jan 22, 2015 at 2:24 PM, Kenneth =Grome <ken@webdnasolutions.com> wrote:endbefore works from the end of the specified text, thus= you
should expect this:
=C2=A0content=3D"Toronto Star copyeditor edits memo announcing the
elimination of copyeditor jobs" />
<meta property=3D"og:description" content=3D"" />=
<meta property=3D"og:url"
content=3D"http://boingboing.net/2009/11/07/toronto-star=-copyedi.html"
/>
<meta property=3D"og:image"
content=3D"http://craphound.com/images/torstarsubsnit.jpeg"=;
Regards,
Kenneth Grome
WebDNA Solutions
http://www.we=bdnasolutions.com
Web Database Systems and Linux Server Management
On 01/22/2015 12:52 PM, David Bastedo wrote:
> Is there somebody who can shed some light on the proper use of
> [middle]. It's not behaving as I would expect.
>
> I am attempting to extract open graph meta data from html after
> grabbing it via [tcpconnect]
>
> so here is a sample of what I want to extract:
>
> <meta property=3D"og:type" content=3D"article" =/>
> <meta property=3D"og:title" content=3D"Toronto Star =copyeditor edits memo announcing the elimination of copyeditor jobs" /=>
> <meta property=3D"og:description" content=3D"" =/>
> <meta property=3D"og:url" content=3D"h=ttp://boingboing.net/2009/11/07/toronto-star-copyedi.html" />> <meta property=3D"og:image" content=3D"http://cra=phound.com/images/torstarsubsnit.jpeg" />
>
> given this code:
> [text]theOutPut=3D[tcpconnect host=3Dboingboing.net <http://boingboing.net>][!]
> [/!][tcpsend skipheader=3DT]GET /2009/11/07/toronto-star-copyedi=.html HTTP/1.0[!]
> [/!][unurl]%0D%0A[/Unurl]Host: boingboing.net <http://boingboing.net>[unurl]%0D%0A%0D%0A[/UnU=RL][unurl]%0D%0A[/Unurl][!]
> [/!][/tcpsend][/tcpconnect][/text]
>
> [text]myProp=3D[middle startafter=3Dproperty=3D"og:title"&am=p;endbefore=3D" /][theOutPut][/middle][/text]
>
> myProp: [myProp]<br />
>
> I would expect MyPprop to return:=C2=A0 =C2=A0content=3D"Toronto =Star copyeditor edits memo announcing the elimination of copyeditor jobs
>
> but, it is returning: myProp: content=3D"Toronto Star copyeditor<=br>> edits memo announcing the elimination of copyeditor jobs" /> a=nd
> the rest of the page
>
> If I url everything, it doesn't work at all. Theoretically, middle=
> is built for exactly this purpose and I should be able to run a
> series of Middles to extract specific og tags that I pre-describe.
>
> i'm using 6.2
>
> Thanks in advance!
>
> d.
>
>
>
> --------------------------------------------------------- This<=br>> message is sent to you because you are subscribed to the mailing
> list . To unsubscribe, E-mail to: archives:
> http://mail.webdna.us/list/talk@webdna.us Bug Reporting:
> support@webdna.=us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
--David Bastedo
<=div>
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
Ten Plus One Communications Inc.http://www.10plus1.c=om
416.277.4499
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...