Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert into a list.
Thanks! mark
mark edward grimm | m.f.a | ed.m
syracuse u. | vpa foundations | timearts
adjunct | new media consultant
megrimm.net | socialmediagroup.org & .com
mgrimm@syr.edu | 315.378.2136
________________________________________
mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert into a list.
you don't have to use Pd, you could just do "wget [URL] > myfile.txt"
you can run this from within Pd (using [shell]) or create a small server that communicates with Pd using netsend/netreceive (or whatever you prefer). i have posted examples on how to the latter on this list before (so see the archives). i have used this method extensively to display websites within Pd (e.g. for http://umlaeute.mur.at/projects/surf-the-net)
an alternative method is to use the [tcpclient] object of mrpeach; the help-patch even shows how to access a website.
fgmasdr IOhannes
Beautiful! Thanks so much!
i'll search that archives for that. i looked at mr.peach but must have overlooked the help patch so thanks for the pointer!
mark
--- IOhannes m zmölnig zmoelnig@iem.at wrote:
mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert
into
a list.
you don't have to use Pd, you could just do "wget [URL] > myfile.txt"
you can run this from within Pd (using [shell]) or create a small server that communicates with Pd using netsend/netreceive (or whatever you prefer). i have posted examples on how to the latter on this list before (so see the archives). i have used this method extensively to display websites within Pd (e.g. for http://umlaeute.mur.at/projects/surf-the-net)
an alternative method is to use the [tcpclient] object of mrpeach; the help-patch even shows how to access a website.
fgmasdr IOhannes
mark edward grimm | m.f.a | ed.m
syracuse u. | vpa foundations | timearts
adjunct | new media consultant
megrimm.net | socialmediagroup.org & .com
mgrimm@syr.edu | 315.378.2136
________________________________________
Hopefully, mrpeach himself will chime in, there are rumors he's got a
HTTP running that's built-in Pd.
.hc
On Apr 25, 2008, at 11:40 AM, mark edward grimm wrote:
Beautiful! Thanks so much!
i'll search that archives for that. i looked at mr.peach but must have overlooked the help patch so thanks for the pointer!
mark
--- IOhannes m zmölnig zmoelnig@iem.at wrote:
mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert
into
a list.
you don't have to use Pd, you could just do "wget [URL] > myfile.txt"
you can run this from within Pd (using [shell]) or create a small server that communicates with Pd using netsend/netreceive (or whatever you prefer). i have posted examples on how to the latter on this list before (so see the archives). i have used this method extensively to display websites within Pd (e.g. for http://umlaeute.mur.at/projects/surf-the-net)
an alternative method is to use the [tcpclient] object of mrpeach; the help-patch even shows how to access a website.
fgmasdr IOhannes
mark edward grimm | m.f.a | ed.m syracuse u. | vpa foundations | timearts adjunct | new media consultant megrimm.net | socialmediagroup.org & .com mgrimm@syr.edu | 315.378.2136 ________________________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
News is what people want to keep hidden and everything else is
publicity. - Bill Moyers
hmmm ... [shell] crashes pd when it bangs "DONE"
pd-0.40.3-extended-20080222 osx 10.5.2 intel 2.16 ghz
...although i can hit "ignore" and continue working. pretty weird.
--- IOhannes m zmölnig zmoelnig@iem.at wrote:
mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert
into
a list.
you don't have to use Pd, you could just do "wget [URL] > myfile.txt"
you can run this from within Pd (using [shell]) or create a small server that communicates with Pd using netsend/netreceive (or whatever you prefer). i have posted examples on how to the latter on this list before (so see the archives). i have used this method extensively to display websites within Pd (e.g. for http://umlaeute.mur.at/projects/surf-the-net)
an alternative method is to use the [tcpclient] object of mrpeach; the help-patch even shows how to access a website.
fgmasdr IOhannes
mark edward grimm | m.f.a | ed.m
syracuse u. | vpa foundations | timearts
adjunct | new media consultant
megrimm.net | socialmediagroup.org & .com
mgrimm@syr.edu | 315.378.2136
________________________________________
cuould do the same with curl, +curl supports other protocols, not just http ..and it has libcurl, which could proly be ported as an external so we'd have "pd<->web" communication going on ..that'd be great for particular types of purposes!
On Fri, Apr 25, 2008 at 04:15:14PM +0200, IOhannes m zmölnig wrote:
mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert into a list.
you don't have to use Pd, you could just do "wget [URL] > myfile.txt"
you can run this from within Pd (using [shell]) or create a small server that communicates with Pd using netsend/netreceive (or whatever you prefer). i have posted examples on how to the latter on this list before (so see the archives). i have used this method extensively to display websites within Pd (e.g. for http://umlaeute.mur.at/projects/surf-the-net)
an alternative method is to use the [tcpclient] object of mrpeach; the help-patch even shows how to access a website.
fgmasdr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert into a list.
Thanks! mark
also look at detox from jasch_lib that can handle xml/html formatted messages. marius.
you can also use the language of your choice that supports OSC and parse the page externally.
i've attached a perl example w/ a super simple pd patch.
-s
On Fri, 2008-04-25 at 06:14 -0700, mark edward grimm wrote:
Hello,
Didn't find any results on search...
Do we know a way to retrieve/grab Text from a webpage/url in PD...
... then write it to a textfile maybe? or insert into a list.
Thanks! mark
mark edward grimm | m.f.a | ed.m syracuse u. | vpa foundations | timearts adjunct | new media consultant megrimm.net | socialmediagroup.org & .com
mgrimm@syr.edu | 315.378.2136 ________________________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list