[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:

TCPSend/Replace DB Records (2002) Forcing a NEWCART (1997) [Listfiles] vs Netfinder (1997) Date Comparison (1998) [WebDNA] XSS and getting rid of HTML codes (2018) ShowNext (1997) [WriteFile] problems (1997) Email Problems - more (2002) Help with Repost Data msg from form (1997) WebStar Secure on other machine (1997) Problems searching from a FORM (1997) [DOS]/DOS query - A SOLUTION (2003) Email Problems on 4.0 (2000) Searching multiple fields from one form field (1997) Exclamation point (1997) SKU lookup (1997) External Images (1998) [WebDNA] test email (2013) show if date < expiry date (small corrections) (2002) Mac webcatalog3_0_5b11 more dead lock throws (1999)