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

请教爬虫如何获取 swf 文件中的 url

  •  
  •   bytenoob ·
    bufrr · Mar 16, 2016 · 5897 views
    This topic created in 3737 days ago, the information mentioned may be changed or developed.

    就是点击 flash 会跳转到新的 url

    逆向出一些 java 代码

    private function myCustomMethod(request:URLRequest, id:string):void{ 
        request.url = (("../innerpages/19_2" + id) + ".php"); 
        navigateToURL(request, "_blank"); 
    }
    
    private function buttonListener(e:MouseEvent):void{ 
        var request:URLRequest = new URLRequest(); 
        request.url = "../innerpages/19_1f52a.php"; 
        navigateToURL(request, "_blank"); 
    }
    

    google 了一下,安装了 pyswf 包,但是没有文档也不知道怎么用,只有官方的两个例子。
    不知道有没有高手能指点一下,告诉我相关资料即可,谢谢~

    5 replies    2016-03-19 17:51:24 +08:00
    simapple
        1
    simapple  
       Mar 16, 2016
    你都已经逆向出来了,何不再抓包确认一下,具体请求格式
    bytenoob
        2
    bytenoob  
    OP
       Mar 16, 2016
    @simapple 抓包结果没有用啊,直接就跳转目的地址了 GET xxx.com/innerpages/19_1f52a.php
    ming2281
        3
    ming2281  
       Mar 16, 2016 via Android
    用浏览器
    直接看跳到哪里
    bytenoob
        4
    bytenoob  
    OP
       Mar 19, 2016
    @ming2281 太重了,有没有轻量一点的方案?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4260 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 95ms · UTC 05:30 · PVG 13:30 · LAX 22:30 · JFK 01:30
    ♥ Do have faith in what you're doing.