0

I need to run this simple python script and display the output in html. how do i do this in django? here is the script

import urllib

r='http://c.lo.com/cl/PHP/grweather.php'
openurl= urllib.urlopen(r)
readurl= openurl.read()


date= readurl[10:20]
humidity= readurl[62:66]
temperature= readurl[83:87]
windspeed= readurl[136:140]

print(date, humidity, temperature, windspeed)

thanks in advance :)

0 Answers0