Update extract.py
Browse files- extract.py +1 -2
extract.py
CHANGED
@@ -69,8 +69,7 @@ def scrape_vehicle(driver):
|
|
69 |
all_rows = driver.find_elements(By.CSS_SELECTOR, "div.row")
|
70 |
for row in all_rows:
|
71 |
print("[ROW TOTAL]", row.text)
|
72 |
-
|
73 |
-
if not row.text in ["POKOK", "DENDA", "TOTAL"]:
|
74 |
cols = row.find_elements(By.TAG_NAME, "p")
|
75 |
print("[COLS TOTAL]", [x.text for x in cols])
|
76 |
if len(cols) >= 4:
|
|
|
69 |
all_rows = driver.find_elements(By.CSS_SELECTOR, "div.row")
|
70 |
for row in all_rows:
|
71 |
print("[ROW TOTAL]", row.text)
|
72 |
+
if not ("POKOK" in row.text or "DENDA" in row.text or "TOTAL" in row.text):
|
|
|
73 |
cols = row.find_elements(By.TAG_NAME, "p")
|
74 |
print("[COLS TOTAL]", [x.text for x in cols])
|
75 |
if len(cols) >= 4:
|