V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wc110302
V2EX  ›  Python

关于 pyqt5 中 runjavascript()方法的一个问题

  •  
  •   wc110302 · 2018-08-29 18:11:45 +08:00 · 2069 次点击
    这是一个创建于 2057 天前的主题,其中的信息可能已经有所发展或是发生改变。
    当我使用 pyqt5 中内置的浏览器,并注入 js 来模拟操控时(view.loadFinished.connect(myjs), myjs 中是我的 runjavascript 方法),我发现这个方法会不停地注入 JS,当我使用 js 按钮进入下一个页面时,还没等继续按另一个按钮,整个 js 又加载了一次,导致我不能正常进行,现在有什么好的方法来解决吗,myjs 里面使用 time.sleep 会导致程序直接停住,想了各种办法都不行,或者有办法让 selenium 来执行 pyqt5 内置的浏览器么?我现在使用 pyqt5 主要是为了绕过一个反爬虫服务
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1020 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:20 · PVG 03:20 · LAX 12:20 · JFK 15:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.