[Zope] grabbing external content

Schmidt, Allen J. aschmidt@nv.cc.va.us
Fri, 16 Nov 2001 10:24:00 -0500


Someone sent this type thing a while back but can't remember who.

Create an external method and put this into it:

def getPage(url):
    import urllib
    return urllib.urlopen(url).read()


The just call it like:
<dtml-var "getPage('http://www.yahoo.com/weather')">

Works like a champ for us!

Allen

-----Original Message-----
From: Pieter Claerhout [mailto:Pieter_Claerhout@CreoScitex.com]
Sent: Friday, November 16, 2001 10:08 AM
To: zope@zope.org
Subject: RE: [Zope] grabbing external content


Try the product KebasData, it does all that and even more... Can't remember
the exact URL, but a find on www.zope.org will tell you.

Cheers,


Pieter

-----Original Message-----
From: Stephan Goeldi [mailto:stephan_goeldi@hotmail.com]
Sent: Friday, November 16, 2001 3:59 PM
To: zope@zope.org
Subject: [Zope] grabbing external content


is there any functionality like

<dtml-var grab="http://www.yahoo.com/weather">

which loads the content of www.yahoo.com/weather without installing External

methods? I thought that I saw such a product some time ago.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )