推荐学习书目
› 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 · 2931 views
    This topic created in 3766 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
    knightdf
    Jul 30, 2016
    1
    基本上就是 driver.switch_to.frame(frame name or frame index)
    记得抓取完了要跳出到默认 frame
    sdlearn
    sdlearn
    OP
    Jul 30, 2016
    2
    @knightdf 就是这里没搞透呢,找不到该怎么切进去
    sdlearn
    sdlearn
    OP
    Jul 30, 2016
    3
    搞定啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1982 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:41 · PVG 17:41 · LAX 01:41 · JFK 04:41
    ♥ Do have faith in what you're doing.