Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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],
|