Re: [WebDNA] Middle Question

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112033
interpreted = N
texte = --089e0102f99ed9b447050d544a67 Content-Type: text/plain; charset=UTF-8 Thanks Ken & Tom, as soon as I understood what Ken was saying, I knew what I want to do is impossible I literally want to pluck open graph or other meta data off of a page, no matter where it is by just using its tag and an end point. If I know what tags I am looking for explicitly - I could put them in a table and loop through looking for whatever I wanted, then I could define the end - working "forward" from the opening of the tag "og: title" for example, and end at the close of the tag "/" and be able to pull out dynamically any meta tag I could possibly think of.... or want. That would be pretty straight forward and very powerful. I can accomplish this task by creating a one off relationship between a page and its tags - say for twitter - its an easy way to grab an image - but its not dynamic I want to do this for any type of page. d. On Fri, Jan 23, 2015 at 7:35 AM, Tom Duke wrote: > David, > > Hi - you won't be able to achieve what you are trying to do with > [middle]. You might be able to hack something together using [grep] or > [listwords]. Though Stackoverflow is full of articles outlining why regex > should not be used to parse HTML. ( > http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 > ) > > Your example shows why a proper HTML parser within WebDNA would be really > useful. For example if you paste your code into this page: > > http://try.jsoup.org > > and type "meta" into the CSS Query box you'll see how a HTML parser does > the job. > > - Tom > > > > > > > ============================================== > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > [w]: > ============================================== > > On 23 January 2015 at 00:11, David Bastedo wrote: > >> To your point, I never switched out your test variable properly >> To my point, I hate when you are right. >> I get the same results. >> >> However, as opposed to blaming me for not understanding how the friggin >> thing works, the docs aren't very clear and after seeing your example I now >> understand "backwards" for the reality that it is. >> >> There is no hope in hell of doing what I want with middle. >> >> Your first example is not as good as your second example to illustrate >> the concept. Thank you for taking the time with the second example, it >> illustrate backwards much more effectively. >> >> d. >> >> >> --------------------------------------------------------- This 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 . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us -- David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com 416.277.4499 --089e0102f99ed9b447050d544a67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Ken & Tom,

as soon as I = understood what Ken was saying, I knew what I want to do is impossible
<= br>I literally want to pluck open graph or other meta data off of a page, n= o matter where it is by just using its tag and an end point.

If I kn= ow what tags I am looking for explicitly - I could put them in a table and = loop through looking for whatever I wanted, then I could define the end - w= orking "forward" from the opening of the tag "og: title"= ; for example, and end at the close of the tag "/" and be able to= pull out dynamically any meta tag I could possibly think of.... or want.
That would be pretty straight forward and very powerful.
I can accomplish this task by creating a one off relationship = between a page and its tags - say for twitter - its an easy way to grab an = image - but its not dynamic I want to do this for any type of page.

=
d.

On Fri, Jan 23, 2015 at 7:35 AM, Tom Duke <= ;tom@revolution= aries.ie> wrote:
David,

Hi - you won't be able to achieve wh= at you are trying to do with [middle].=C2=A0 You might be able to hack some= thing together using [grep] or [listwords].=C2=A0 Though Stackoverflow is f= ull of articles outlining why regex should not be used to parse HTML. =C2= =A0(ht= tp://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml= -self-contained-tags/1732454#1732454)

Your exa= mple shows why a proper HTML parser within WebDNA would be really useful.= =C2=A0 For example if you paste your code into this page:

=C2=A0 =C2=A0=C2=A0http://try.jsoup.org

and type "meta&qu= ot; into the CSS Query box you'll see how a HTML parser does the job.

- Tom



<= /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=3D=3D=3D=3D=3D=3D=3D
Digital Revolutionaries
1st Floor, Castle= river House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland----------------------------------------------
[t]: + 353 1 44039= 07
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/= >
=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=3D=3D=3D=3D=3D=3D

On 23 January 2015 at= 00:11, David Bastedo <david@10plus1.com> wrote:
=
To your point, I never switched out your test variable = properly
To my point, I hate when you are right.
I get the sam= e results.

However, as opposed to blaming me for not understan= ding how the friggin thing works, the docs aren't very clear and after = seeing your example I now understand "backwards" for the reality = that it is.

There is no hope in hell of doing what I want with middl= e.

Your first example is not as good as your second example to= illustrate the concept. Thank you for taking the time with the second exam= ple, it illustrate backwards much more effectively.

d.


--------------------------------------------------------- This 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: suppo= rt@webdna.us

--------------------------------------------------------- This 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: suppo= rt@webdna.us



--
David Bastedo

Ten Plus One Communications Inc.
http://www.10plus1.com
41= 6.277.4499

--089e0102f99ed9b447050d544a67-- 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)
--089e0102f99ed9b447050d544a67 Content-Type: text/plain; charset=UTF-8 Thanks Ken & Tom, as soon as I understood what Ken was saying, I knew what I want to do is impossible I literally want to pluck open graph or other meta data off of a page, no matter where it is by just using its tag and an end point. If I know what tags I am looking for explicitly - I could put them in a table and loop through looking for whatever I wanted, then I could define the end - working "forward" from the opening of the tag "og: title" for example, and end at the close of the tag "/" and be able to pull out dynamically any meta tag I could possibly think of.... or want. That would be pretty straight forward and very powerful. I can accomplish this task by creating a one off relationship between a page and its tags - say for twitter - its an easy way to grab an image - but its not dynamic I want to do this for any type of page. d. On Fri, Jan 23, 2015 at 7:35 AM, Tom Duke wrote: > David, > > Hi - you won't be able to achieve what you are trying to do with > [middle]. You might be able to hack something together using [grep] or > [listwords]. Though Stackoverflow is full of articles outlining why regex > should not be used to parse HTML. ( > http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 > ) > > Your example shows why a proper HTML parser within WebDNA would be really > useful. For example if you paste your code into this page: > > http://try.jsoup.org > > and type "meta" into the CSS Query box you'll see how a HTML parser does > the job. > > - Tom > > > > > > > ============================================== > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > [w]: > ============================================== > > On 23 January 2015 at 00:11, David Bastedo wrote: > >> To your point, I never switched out your test variable properly >> To my point, I hate when you are right. >> I get the same results. >> >> However, as opposed to blaming me for not understanding how the friggin >> thing works, the docs aren't very clear and after seeing your example I now >> understand "backwards" for the reality that it is. >> >> There is no hope in hell of doing what I want with middle. >> >> Your first example is not as good as your second example to illustrate >> the concept. Thank you for taking the time with the second example, it >> illustrate backwards much more effectively. >> >> d. >> >> >> --------------------------------------------------------- This 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 . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us -- David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com 416.277.4499 --089e0102f99ed9b447050d544a67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Ken & Tom,

as soon as I = understood what Ken was saying, I knew what I want to do is impossible
<= br>I literally want to pluck open graph or other meta data off of a page, n= o matter where it is by just using its tag and an end point.

If I kn= ow what tags I am looking for explicitly - I could put them in a table and = loop through looking for whatever I wanted, then I could define the end - w= orking "forward" from the opening of the tag "og: title"= ; for example, and end at the close of the tag "/" and be able to= pull out dynamically any meta tag I could possibly think of.... or want.
That would be pretty straight forward and very powerful.
I can accomplish this task by creating a one off relationship = between a page and its tags - say for twitter - its an easy way to grab an = image - but its not dynamic I want to do this for any type of page.

=
d.

On Fri, Jan 23, 2015 at 7:35 AM, Tom Duke <= ;tom@revolution= aries.ie> wrote:
David,

Hi - you won't be able to achieve wh= at you are trying to do with [middle].=C2=A0 You might be able to hack some= thing together using [grep] or [listwords].=C2=A0 Though Stackoverflow is f= ull of articles outlining why regex should not be used to parse HTML. =C2= =A0(ht= tp://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml= -self-contained-tags/1732454#1732454)

Your exa= mple shows why a proper HTML parser within WebDNA would be really useful.= =C2=A0 For example if you paste your code into this page:

=C2=A0 =C2=A0=C2=A0http://try.jsoup.org

and type "meta&qu= ot; into the CSS Query box you'll see how a HTML parser does the job.

- Tom



<= /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=3D=3D=3D=3D=3D=3D=3D
Digital Revolutionaries
1st Floor, Castle= river House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland----------------------------------------------
[t]: + 353 1 44039= 07
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/= >
=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=3D=3D=3D=3D=3D=3D

On 23 January 2015 at= 00:11, David Bastedo <david@10plus1.com> wrote:
=
To your point, I never switched out your test variable = properly
To my point, I hate when you are right.
I get the sam= e results.

However, as opposed to blaming me for not understan= ding how the friggin thing works, the docs aren't very clear and after = seeing your example I now understand "backwards" for the reality = that it is.

There is no hope in hell of doing what I want with middl= e.

Your first example is not as good as your second example to= illustrate the concept. Thank you for taking the time with the second exam= ple, it illustrate backwards much more effectively.

d.


--------------------------------------------------------- This 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: suppo= rt@webdna.us

--------------------------------------------------------- This 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: suppo= rt@webdna.us



--
David Bastedo

Ten Plus One Communications Inc.
http://www.10plus1.com
41= 6.277.4499

--089e0102f99ed9b447050d544a67-- 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:

Date/Time format problems (1997) [TaxableTotal] - not working with AOL and IE (1997) authenticating a second user (1997) I read the manual (2000) Bug in 4.5 - Needs to be fixed ASAP. (2002) [WebDNA] advice on quoting a job (2009) carriage returns in data (1997) # fields limited? (1997) WebCatalog stalls (1998) shell problems again... (2003) URGENT: Can't email orders - HELP #2 (1998) Re:Copyright ? (1997) system crashes, event log (1997) pc (1997) [WebDNA] CICADA (2009) How do I access a shopping cart once it had been moved into (2000) Search in 2 or more catalogs (1997) WebCat and image maps (1997) New Site Announcement: MusicianStore.com goes live with (1998) Problem (1997)