Skip to content

Commit

Permalink
fix: fix to get zigzag product
Browse files Browse the repository at this point in the history
  • Loading branch information
minaamim committed Jan 15, 2024
1 parent 962328b commit aecfc70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ public ItemRequest getZigzag(String url) throws IOException {
JsonObject pageProps = props.get("pageProps").getAsJsonObject();
JsonObject product = pageProps.getAsJsonObject("product");
JsonObject product_price = product.getAsJsonObject("product_price");
JsonObject final_discount_info = product_price.getAsJsonObject("final_discount_info");
originPrice = product_price.get("original_price").toString();
discountRate = product_price.get("discount_rate").toString();
discountRate = final_discount_info.get("discount_rate").toString();

String dp = document.getElementsByClass(" css-15ex2ru e1v14k971").text();
dp = dp.replaceAll("[^0-9]", "");
Expand Down

0 comments on commit aecfc70

Please sign in to comment.