当前位置:网站首页>[software] phantomjs screenshot
[software] phantomjs screenshot
2022-07-01 07:26:00 【Illegal account 247188】
Download apps phantomjs-2.1.1-windows, Decompress the package
stay bin Under the path , establish .txt, Copy below , preservation , Change the file name to demo.js
Switch to bin Enter... Under the path CMD
stay CMD function phantomjs.exe demo2.js
var page = require('webpage').create();
//viewportSize being the actual size of the headless browser
page.viewportSize = { width: 1770, height: 750 };
//the clipRect is the portion of the page you are taking a screenshot of
page.clipRect = { top: 0, left: 0, width: 1770, height: 750 };
//the rest of the code is the same as the previous example
page.open('http://220.160.53.33:8903/case/sz22058', function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit();
} else {
window.setTimeout(function () {
page.render(' Tumor grades .png');
phantom.exit();
}, 200); // Change timeout as required to allow sufficient time
}
});
边栏推荐
- C# 读写自定义的Config文件
- redisson使用全解——redisson官方文檔+注釋(上篇)
- Why are so many people turning to product managers? What is the development prospect of product manager?
- Is it safe to buy funds on the brokerage account
- Browser local storage
- Are there any practical skills for operation and maintenance management
- 赌上了绩效,赢了公司CTO,我要搭DevOps平台!
- DC-4靶机
- Ctfhub port scan (SSRF)
- redisson使用全解——redisson官方文档+注释(下篇)
猜你喜欢

Atguigu---- scaffold --02- use scaffold (2)
![[lingo] find the shortest path problem of undirected graph](/img/14/1ccae0f33f5857b546d7fd0aa74c35.png)
[lingo] find the shortest path problem of undirected graph

2022制冷与空调设备运行操作国家题库模拟考试平台操作
![[image processing] image histogram equalization system with GUI interface](/img/3b/52c241c48c91dd58300af58478129e.png)
[image processing] image histogram equalization system with GUI interface

2022茶艺师(初级)操作证考试题库及模拟考试

JSP - 分页

C语言实现【扫雷游戏】完整版(实现源码)

Autosar 学习记录(1) – EcuM_Init

论文学习——水文时间序列相似性查询的分析与研究

盘点华为云GaussDB(for Redis)六大秒级能力
随机推荐
【深圳IO】精确食品称(汇编语言的一些理解)
ctfshow-web354(SSRF)
運維管理系統,人性化操作體驗
2022茶艺师(初级)操作证考试题库及模拟考试
vscode 根据 ESLint 规范自动格式化代码
Félicitations pour l'inscription réussie de wuxinghe
[the path of system analysts] Chapter 5: software engineering of double disk (reverse clean room and Model Driven Development)
关于图灵测试和中文屋Chinese room的理解
Redisson uses the complete solution - redisson official documents + Notes (Part 1)
2022电工(中级)复训题库及答案
Minecraft 1.16.5模组开发(五十一) 方块实体 (Tile Entity)
JAX的深度学习和科学计算
Solution to the problem that objects in unity2021 scene view cannot be directly selected
Image style migration cyclegan principle
华泰证券开户是安全可靠的么?怎么开华泰证券账户
Huawei modelarts training alexnet model
The game is real! China software cup releases a new industrial innovation competition, and schools and enterprises can participate in it jointly
ctfshow-web351(SSRF)
2022制冷与空调设备运行操作国家题库模拟考试平台操作
【系统分析师之路】第五章 复盘软件工程(逆向净室与模型驱动开发)