Created
December 5, 2015 20:30
-
-
Save arth2o/d7947b3b04adbf66a0d4 to your computer and use it in GitHub Desktop.
casper.userAgent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create(); | |
casper.userAgent('AdsBot-Google-Mobile (+http://www.google.com/mobile/adsbot.html) Mozilla (iPhone; U; CPU iPhone OS 3 0 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile Safari'); | |
casper.start("http://glimmering.eu/", function() { | |
this.echo(this.getTitle()); | |
}); | |
casper.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment