platonai / exotic-amazon

A complete solution to crawl amazon at scale completely and accurately.
143 stars 46 forks source link

如何切换城市 #28

Open swlcyx opened 1 year ago

swlcyx commented 1 year ago

chooseCountry函数应该在何处调用实现爬取在指定城市的页面进行

platonai commented 1 year ago

通常在 onBrowserLaunched 事件中执行切换城市。PageEvent.BrowseEvent.onBrowserLaunched() 在一个全新的浏览器(独立隐私上下文)打开后调用。

galaxyeye commented 7 months ago

手动操作

  1. git clone git@github.com:platonai/PulsarRPA.git
  2. 运行 ai/platon/pulsar/tools/OpenPrototypeChrome.kt
  3. 手动设置配送地址、语言等
  4. 关闭 prototype chrome
  5. 正常执行 PulsarRPA、exotic-amazon、PulsarRPAPro 或者其他基于 PulsarRPA 的程序,即可复用 prototype chrome 的浏览器配置

脚本操作

setPreferences.sh

Kotlin 程序入口

ChooseDistrict

galaxyeye commented 6 months ago

see also https://github.com/platonai/exotic-amazon/issues/42