[WebDNA] Middle Question

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112008
interpreted = N
texte = --001a1133129cc200ca050d422d23 Content-Type: text/plain; charset=UTF-8 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: given this code: [text]theOutPut=[tcpconnect host=boingboing.net][!] [/!][tcpsend skipheader=T]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!] [/!][UnURL]%0D%0A[/Unurl]Host: boingboing.net[UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!] [/!][/tcpsend][/tcpconnect][/text] [text]myProp=[middle startafter=property="og:title"&endbefore=" /][theOutPut][/middle][/text] myProp: [myProp]
I would expect MyPprop to return: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs but, it is returning: myProp: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs" /> and 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. --001a1133129cc200ca050d422d23 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is there somebody who can shed some li= ght 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 aft= er 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" /<=/span>><meta property=3D"og:description&quo=t; 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/ima=ges/torstarsubsnit.jpeg" />

given this code:
[text]theOutPut=3D[tcpconnect host=3Dboingboing.net][!]
[/!][tcpsend skip= header=3DT]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!]
[/!][Un= URL]%0D%0A[/Unurl]Host: boingboing.net
[UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!]
[/!][/tcpsend][/tcp= connect][/text]

[text]myProp=3D[middle startafter=3Dproperty=3D"= ;og:title"&endbefore=3D" /][theOutPut][/middle][/text]
<= br>myProp: [myProp]<br />

I would expect MyPprop to return:   content=3D"Toronto =Star copyeditor edits memo announcing the elimination of copyeditor jobsbut, it is returning: myProp:  content=3D"Toronto Star copyeditor e=dits memo announcing the elimination of copyeditor jobs" /> and the= rest of the page

If I url everything, it doesn't wor= k at all. Theoretically, middle is built for exactly this purpose and I sho= uld be able to run a series of Middles to extract specific og tags that I p= re-describe.

i'm using 6.2

Thanks i= n advance!

d.



=09 =09 =09 =09 =09 =09 =09 =09 =20 =09 =09 =09 =09 =20 =20 =20
=20
--001a1133129cc200ca050d422d23-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  2. Re: [WebDNA] Middle Question (christophe.billiottet@webdna.us 2015)
  3. Re: [WebDNA] Middle Question (David Bastedo 2015)
  4. Re: [WebDNA] Middle Question (Tom Duke 2015)
  5. Re: [WebDNA] Middle Question (christophe.billiottet@webdna.us 2015)
  6. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  7. Re: [WebDNA] Middle Question (David Bastedo 2015)
  8. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  9. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  10. Re: [WebDNA] Middle Question (David Bastedo 2015)
  11. Re: [WebDNA] Middle Question (Terry Wilson 2015)
  12. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  13. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  14. Re: [WebDNA] Middle Question (David Bastedo 2015)
  15. Re: [WebDNA] Middle Question (David Bastedo 2015)
  16. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  17. Re: [WebDNA] Middle Question (Terry Wilson 2015)
  18. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  19. Re: [WebDNA] Middle Question (Chris 2015)
  20. Re: [WebDNA] Middle Question (Chris 2015)
  21. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  22. Re: [WebDNA] Middle Question (Steve Craig 2015)
  23. Re: [WebDNA] Middle Question (David Bastedo 2015)
  24. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  25. [WebDNA] Middle Question (David Bastedo 2015)
--001a1133129cc200ca050d422d23 Content-Type: text/plain; charset=UTF-8 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: given this code: [text]theOutPut=[tcpconnect host=boingboing.net][!] [/!][tcpsend skipheader=T]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!] [/!][unurl]%0D%0A[/Unurl]Host: boingboing.net[unurl]%0D%0A%0D%0A[/UnURL][unurl]%0D%0A[/Unurl][!] [/!][/tcpsend][/tcpconnect][/text] [text]myProp=[middle startafter=property="og:title"&endbefore=" /][theOutPut][/middle][/text] myProp: [myProp]
I would expect MyPprop to return: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs but, it is returning: myProp: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs" /> and 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. --001a1133129cc200ca050d422d23 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is there somebody who can shed some li= ght 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 aft= er 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" /<=/span>><meta property=3D"og:description&quo=t; 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/ima=ges/torstarsubsnit.jpeg" />

given this code:
[text]theOutPut=3D[tcpconnect host=3Dboingboing.net][!]
[/!][tcpsend skip= header=3DT]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!]
[/!][Un= URL]%0D%0A[/Unurl]Host: boingboing.net
[unurl]%0D%0A%0D%0A[/UnURL][unurl]%0D%0A[/Unurl][!]
[/!][/tcpsend][/tcp= connect][/text]

[text]myProp=3D[middle startafter=3Dproperty=3D"= ;og:title"&endbefore=3D" /][theOutPut][/middle][/text]
<= br>myProp: [myProp]<br />

I would expect MyPprop to return:   content=3D"Toronto =Star copyeditor edits memo announcing the elimination of copyeditor jobsbut, it is returning: myProp:  content=3D"Toronto Star copyeditor e=dits memo announcing the elimination of copyeditor jobs" /> and the= rest of the page

If I url everything, it doesn't wor= k at all. Theoretically, middle is built for exactly this purpose and I sho= uld be able to run a series of Middles to extract specific og tags that I p= re-describe.

i'm using 6.2

Thanks i= n advance!

d.



=09 =09 =09 =09 =09 =09 =09 =09 =20 =09 =09 =09 =09 =20 =20 =20
=20
--001a1133129cc200ca050d422d23-- David Bastedo

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

Setting up WebCatalog with Retail Pro data (1996) Logging purchases (1997) What abobut variables named max ??? (2000) Authorize net woes (2003) WC2b15 File Corruption (1997) WC1.6 to WC2 date formatting -FIXED! (1997) pc (1997) ShowNext truncating passed variable?? (1997) Bug Report, maybe (1997) [off] Promotions/ECRC (1997) Banners (1997) AppleScript question (1997) OT: advice on Wintel server options (1998) Showing unopened cart (1997) Searching for ALL / empty form field (1997) Listserver problem (1997) New public beta available (1997) auto-stripping of spaces (1997) Shared conversion under WebTen (1998) New syntax feedback for 4.0 (2000)