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
Yc1992
V2EX  ›  Python

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

  •  
  •   Yc1992 ·
    bufrr · 2016-03-16 13:25:10 +08:00 · 5365 次点击
    这是一个创建于 2964 天前的主题,其中的信息可能已经有所发展或是发生改变。

    就是点击 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 条回复    2016-03-19 17:51:24 +08:00
    simapple
        1
    simapple  
       2016-03-16 13:59:19 +08:00
    你都已经逆向出来了,何不再抓包确认一下,具体请求格式
    Yc1992
        2
    Yc1992  
    OP
       2016-03-16 14:13:47 +08:00
    @simapple 抓包结果没有用啊,直接就跳转目的地址了 GET xxx.com/innerpages/19_1f52a.php
    ming2281
        3
    ming2281  
       2016-03-16 22:58:51 +08:00 via Android
    用浏览器
    直接看跳到哪里
    Yc1992
        4
    Yc1992  
    OP
       2016-03-19 17:21:38 +08:00
    @ming2281 太重了,有没有轻量一点的方案?
    wenyu1001
        5
    wenyu1001  
       2016-03-19 17:51:24 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2714 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 83ms · UTC 11:30 · PVG 19:30 · LAX 04:30 · JFK 07:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.