import requests
import re
def getHTML(url):
try:
r=requests.get(url,timeout=30)
r.raise_for_status()
r.encoding=r.apparent_encoding
return r.text
except:
return ""
def getLIST(html,goodlist):
plist=re.final(t'\"view_price\"\:\"[\d\.]*\"',html)
def printInfo():
def main():
infoLIST=[]
url=''
HTML=getHTML()
getLIST(HTML,infoLIST=)
printInfo()
main()
import re
def getHTML(url):
try:
r=requests.get(url,timeout=30)
r.raise_for_status()
r.encoding=r.apparent_encoding
return r.text
except:
return ""
def getLIST(html,goodlist):
plist=re.final(t'\"view_price\"\:\"[\d\.]*\"',html)
def printInfo():
def main():
infoLIST=[]
url=''
HTML=getHTML()
getLIST(HTML,infoLIST=)
printInfo()
main()