[PD] https get in Pd

Roman Haefeli reduzent at gmail.com
Wed May 22 15:53:03 CEST 2019

On Wed, 2019-05-22 at 15:26 +0200, oliver wrote:
> Roman Haefeli wrote:
> > 
> > 
> > On Wed, 2019-05-22 at 13:55 +0200, Nicolas Montgermont wrote:
> > > Hello everyone,
> > > 
> > > What is the easiest way to get the content of a https webpage in
> > > pd,
> > > for example this one:
> > > 
> > > Is there any patch that can do this around?
> > > 
> also consider using those objects that command line executions:
> WINDOWS: [system] (in the "motex" library)
> LINUX & OSX: [shell] (in the "ggee" library)
> you can get them via deken ("Help/Find Externals")
> since those objecs are very basic and the syntax can be tricky (PD 
> doesn't allow backslashes for example) my way of using them is to 
> compose/write the command i would type into a shell/terminal into a
> text 
> file, save it, and then call it from within PD using above objects.
> (backslashes or other special characters can be emulated with [list 
> tosymbol], if that fails consider using [binfile] from "mrpeach")
> with this method you can pretty much do anything inside a PD patch
> that 
> you would be doing in a terminal.

Yes, you can, but it is not portable (as it requires different
solutions depending on platform) and requires additional filesystem
interactions. Using [shell] (or [system] for that matter) has all kinds
of side effects, like [shell] searches scripts relative to Pd start
location instead of relative to Pd patch. I wouldn't recommend using

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190522/5ce42261/attachment.sig>

More information about the Pd-list mailing list