推荐学习书目
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
sdlearn
V2EX  ›  Python

请教下 selenium 提取链接问题

  •  
  •   sdlearn · Jul 29, 2016 · 2754 views
    This topic created in 3604 days ago, the information mentioned may be changed or developed.

    使用 selenium 可以提取 adsense 这种 iframe 框架内的链接吗 网上找到一个相关的问题:

    http://stackoverflow.com/questions/31434363/not-able-to-scrape-google-adsense

    试了一下貌似不行,不知道哪里做的不对

    3 replies    2016-07-30 13:39:32 +08:00
    knightdf
        1
    knightdf  
       Jul 30, 2016
    基本上就是 driver.switch_to.frame(frame name or frame index)
    记得抓取完了要跳出到默认 frame
    sdlearn
        2
    sdlearn  
    OP
       Jul 30, 2016
    @knightdf 就是这里没搞透呢,找不到该怎么切进去
    sdlearn
        3
    sdlearn  
    OP
       Jul 30, 2016
    搞定啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   988 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:18 · PVG 06:18 · LAX 15:18 · JFK 18:18
    ♥ Do have faith in what you're doing.