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

Lambada for Macintosh is Here! (1996) Why is [authenticate] not recognizing [username] on all sitedirectories? (2000) WebCatalog/Mac 2.1b2 New Features (1997) Max Record length restated as maybe bug (1997) [WebDNA] a major shift in strategy? (2008) Re:Part 2 - [showif] if variable exists (1998) formatting dates from a field ... (1997) multiple price line in formula.db (2004) [tcpsend] (2001) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) with Link i need to (1997) problems with 2 tags (1997) Virtual hosting and webcatNT (1997) OT- OSX / OSX Server... (2004) [text] prob (1998) Hosting Services (1999) possible, WebCat2.0 and checkboxes-restated (1997) [raw] & typhoon pro 3.0 or 4.0 (2001) [WriteFile] problems (1997) WebCatalog-NT?'s (1996)