[PD] webpage to xml

Thomas Mayer thomas at residuum.org
Sun Apr 3 14:52:35 CEST 2016


HI,

On 02.04.2016 12:12, Csaba Láng wrote:
> Dear list,
> 
> is there any option to convert automatically webpage content to xml in PD?
> I would like to create some interactive installations based on web
> content, and still looking for a simple way.

Converting a symbol into XML or DOM is not possible with Pd, but you
could write your parser in a seperate program, e.g. using Python and
Beautiful Soup (https://pypi.python.org/pypi/beautifulsoup4).

Then you can send the data to Pd using UDP and [netreceive] in Pd.

If you can control the webserver, you could output the data as JSON and
then use my extension PuREST JSON:
http://ix.residuum.org/pd/purest_json.html

Hth,
Thomas
-- 
"From the perspective of communication analysis, government is not
an instrument of law and order, but of law and disorder." (Gracchus
Gruad in: Robert Shea & Robert A. Wilson, The Golden Apple)
http://www.residuum.org/



More information about the Pd-list mailing list