Answer the question
In order to leave comments, you need to log in
How to use Python in Classic ASP script?
I'm trying to make a parser on IIS (Classic ASP).
Why the code doesn't work
<script language="Python" runat="server">
import lxml.html
import requests
def gotourl(url):
z=requests.get(url, timeout=(60,60))
x=lxml.html.fromstring(z.text)
return z.text
</script>
<%
url="http://www.google.com"
q=gotourl(url)
%>
<%=q%>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question