douxian3828 2012-12-20 19:33
浏览 41
已采纳

在SSH上加载带有javascript / html5的页面

Previously, I was working in Python using the Spynner module to macro through browsing specific webpages for me until I ran in to one page where Spynner could not correctly run the javascript on the website. I was unable to find another Python module that supported Javascript in a browser, so I moved on to trying new methods.

I have access to my Hostgator SSH as well as one of those "free" ssh server. Would there be a command through SSH I could execute that would load a webpages javascript and HTML5 coding fully on the SSH server? (Being able to view it is not reqired). I was thinking of maybe running a PHP command? Or would something else work better?

Any help is apprcieated, thank you!

  • 写回答

2条回答 默认 最新

  • douboshan1466 2012-12-20 19:50
    关注

    Try PhantomJS. It has a great scripting engine to interact with pages that are downloaded. This assumes you actually want the HTML and javascript to be rendered as if it was loaded in a browser rather than just downloading the code itself.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用