Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何切换城市 #28

Open
swlcyx opened this issue Apr 10, 2023 · 3 comments
Open

如何切换城市 #28

swlcyx opened this issue Apr 10, 2023 · 3 comments
Labels
good first issue Good for newcomers wontfix This will not be worked on

Comments

@swlcyx
Copy link

swlcyx commented Apr 10, 2023

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

@platonai
Copy link
Owner

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

@platonai platonai added good first issue Good for newcomers wontfix This will not be worked on labels Apr 11, 2023
@galaxyeye
Copy link
Collaborator

手动操作

  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
Copy link
Collaborator

see also #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants