Could not load https://web.WhatsApp.com

333 views
Skip to first unread message

Marvin N.

unread,
Dec 12, 2016, 5:55:09 PM12/12/16
to phantomjs

Hi,

I am using the script below access Web.Whatsapp.com and could not open the app, instead I get this message:

The default user agent is Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1

The NEW user agent is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14

Status: success

Page content:  WhatsApp Web

Send and receive WhatsApp messages right from your computer.

We recommend using WhatsApp with one of the following browsers:

Google Chrome

Mozilla Firefox

Opera

WhatsApp also supports:

Microsoft Edge

Safari (MacOS 10.8+ Only)



"use strict";
var page = require('webpage').create();
console.log('The default user agent is ' + page.settings.userAgent);
page.settings.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14";
console.log('The NEW user agent is ' + page.settings.userAgent);

page.open('https://web.whatsapp.com', function(status) {
  console.log("Status: " + status);
  if(status === "success") {
    //page.render('example.png');
    console.log("Page content: ", page.plainText);
  }
  phantom.exit();
});


Does anyone knows what is missing?

Thanks,
Marvin 

Alex

unread,
Mar 29, 2017, 7:39:32 AM3/29/17
to phantomjs
Hi, I have the same problem. With Phantomjs I don't get page with QR code. Did you solve this problem?
Thanks.
whatsapp.png

Dinakara Shetty

unread,
Apr 13, 2017, 9:41:17 AM4/13/17
to phantomjs
Hi,

I am also facing this issue. Has anyone found solution for this?

Regards,
Dinakara
Reply all
Reply to author
Forward
0 new messages