爬取 amazon个人主页指定评论
花了点个把小时, 做了一个到amazon个人主页爬出指定asin的评论
-
本项目采用 pipenv 作为 python 虚拟环境和依赖管理工具
-
执行一下命令运行本项目
pipenv install
pipenv shell
python app_review.py
3.执行post请求
http://127.0.0.1:5000/api/user_review
http://127.0.0.1:5000/api/not_bad_review
http://127.0.0.1:5000/api/asin_follow_offer
review
string类型的JSON数组
[{'review_order_id': '', 'amazon_buyer_url': '', 'country': '', 'asin': ''}]
review_order_id 用来标识的唯一 id , 随便填写
amazon_buyer_url amazon 上 directedId 需要去掉 amzn1.account.
amazon_buyer_url 为 AHP3GBGMQ7HBYZCJWUJG72JFR22A
country 国家简码 US CN 等等
asin amazon产品 id
country
国家简码
asin
amazon产品 id
count
获取次数
country
国家简码
asin
amazon产品 id