用 python 如果实现网页的系列操作而且隐藏浏览器? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
pc10201

用 python 如果实现网页的系列操作而且隐藏浏览器?

  •  
  •   pc10201 Feb 14, 2014 4887 views
    This topic created in 4454 days ago, the information mentioned may be changed or developed.
    最近用了一个软件,叫"淘宝自动助手",不是广告或软文,它能实现商品自动带字好评。
    是用C#写的。

    我用抓包软件抓了一下包,发现数据中有许多js和css请求,换句话说,不是基于纯http协议操作的,而是调用的浏览器内核或相关控件,同时看不到浏览器窗口。如果淘宝登录有验证码,还会弹一个小窗口让你输入验证码,然后剩下的就是进行网页操作了。

    虽然我也能用selenium+python能实现相关的功能,但总是弹出一个浏览器,还不是太方便。用python能实现这样的功能吗?最好不用pyqt库
    10 replies    1970-01-01 08:00:00 08:00
    aisk
        1
    aisk  
       Feb 14, 2014
    可以试试ghost
    ihacku
        2
    ihacku  
       Feb 14, 2014
    PotatoBrother
        3
    PotatoBrother  
       Feb 15, 2014
    http://splinter.cobrateam.info
    楼主可以看看这个神器
    aec4d
        4
    aec4d  
       Feb 15, 2014
    ghost.py 和phantomjs都基于pyqt 另外ghost.py可用资料实在太少 不知为何我运行示例项目就会让python.exe停止响应
    pc10201
        5
    pc10201  
    OP
       Feb 15, 2014
    @PotatoBrother 我是win7的环境,跑不起来~
    pc10201
        6
    pc10201  
    OP
       Feb 15, 2014
    @aec4d 我用ghost.py也会停止响应,算了,就用phantomjs.exe命令行工具,然后隐藏一下就行了,不过假如有验证码,那个验证码图片怎么抠出来了啊?
    PotatoBrother
        7
    PotatoBrother  
       Feb 15, 2014 via iPhone
    @pc10201 貌似要装相关浏览器的驱动
    icylogic
        8
    icylogic  
       Feb 16, 2014
    以前用别的语言尝试过, 不知道这个软件是否是一样的, 用的是ie浏览器的com接口...
    tanywei
        9
    tanywei  
       Feb 17, 2014
    还得有X11环境 麻烦
    fdsfsdfsdf3334
        10
    fdsfsdfsdf3334  
       Feb 23, 2014
    @PotatoBrother 这个怎么让窗口 不可视呀
    About     Help     Advertise     Blog     API     FAQ     Solana     1033 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 39ms UTC 23:07 PVG 07:07 LAX 16:07 JFK 19:07
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86