Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Authentication
- "use strict";
- var siteUrl = 'http://www.3dcontentcentral.com/secure/download-model.aspx? catalogid=10260&id=496588';
- var page = require('webpage').create();
- page.open(siteUrl, function (status) {
- if (status !== 'success') {
- console.log('Unable to access network');
- } else {
- console.log("Status: " + status);
- page.render('yes.png');
- var fs = require('fs');
- fs.write('page.html', page.content, 'w');
- //заполняем
- page.evaluate(function() {
- document.getElementById("3dcclogin").value = "mymail@mail.ru";
- document.getElementById("3dccpassword").value = "mypass";
- document.getElementById("btn_ucLogin").click();
- });
- }
- page.render('yes2.png');
- fs.write('page1.html', page.content, 'w');
- phantom.exit();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement