jonathanjordan21 commited on
Commit
b5f1e79
·
verified ·
1 Parent(s): b59b7f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -759,7 +759,9 @@ def get_nilai_jual(nopol: str):
759
  "merek":data_kendaraan["model/tipe"]
760
  }
761
  ).text
 
762
  matches = re.findall(r'<td[^>]*>(.*?)</td>', html, re.DOTALL)
 
763
  chunks = [
764
  {
765
  "no":matches[i],
@@ -793,6 +795,7 @@ def get_data(nopol: str):
793
  }
794
  ).text
795
  matches = re.findall(r'<td[^>]*>(.*?)</td>', html, re.DOTALL)
 
796
  chunks = {
797
  # "no":matches[i],
798
  "koding":matches[i+1],
 
759
  "merek":data_kendaraan["model/tipe"]
760
  }
761
  ).text
762
+ print("[HTML]", html)
763
  matches = re.findall(r'<td[^>]*>(.*?)</td>', html, re.DOTALL)
764
+ print("[MATCHES]", matches)
765
  chunks = [
766
  {
767
  "no":matches[i],
 
795
  }
796
  ).text
797
  matches = re.findall(r'<td[^>]*>(.*?)</td>', html, re.DOTALL)
798
+ i = 0
799
  chunks = {
800
  # "no":matches[i],
801
  "koding":matches[i+1],