10分钟快速开发一个监控ASIN的系统-计算引擎

定义数据模型

 

发布生成表单

 

Python端直接操作亚马逊amazon

 # <span data-hook="rating-out-of-text" aria-hidden="true" class="a-size-medium a-color-base">4.5 out of 5</span>
                if com_amz_x.check_driver_is_exists_by_x_path(driver, "//span[@data-hook='rating-out-of-text']") == 1:
                    rate_text = driver.find_element(By.XPATH, "//span[@data-hook='rating-out-of-text']").text
                    rate_text = rate_text.replace(" out of 5", "")
                    rate_text = rate_text.replace(" out of 4", "")
                    change_bis_data_star(asin, rate_text)
                # <span data-hook="total-review-count" class="a-size-base a-color-secondary">2,251 global ratings</span>
                if com_amz_x.check_driver_is_exists_by_x_path(driver, "//span[@data-hook='total-review-count']") == 1:
                    ratings = driver.find_element(By.XPATH, "//span[@data-hook='total-review-count']").text
                    ratings = ratings.replace(" global ratings", "")
                    ratings = ratings.replace(",", "")
                    change_bis_data_ratings(asin, ratings)

  

 企业微信,或者钉钉 推送--》asin信息发生变化的时候。

一个计算引擎==5个人力。

前端,后段,数据库,逻辑-- 统统搞定。

DONE

 

posted @ 2024-11-04 17:57  liskov_design  阅读(2)  评论(0编辑  收藏  举报