var page = require('webpage').create();var fs = require('fs');var system = require('system');
var i = system.args[1];var u1 = 'http://forums.macrumors.com/showthread.php?t=';
page.open(u1+i, function(status){ console.log("status: " + status + " " + i); if(status === "success"){ fs.write('macrumors_'+i+'.html', page.content, 'w'); } phantom.exit();});#!/bin/bash
for i in {12532..20000}; do phantomjs appleforum.js $i donesh appleforum.sh
status: success 13134
ReferenceError: Can't find variable: NS_AdDivs
http://forums.macrumors.com/showthread.php?t=13135:5666 in global code
ReferenceError: Can't find variable: NS_AdDivs
http://forums.macrumors.com/showthread.php?t=13135:5666 in global code
status: success 13135
status: success 13136
--
You received this message because you are subscribed to a topic in the Google Groups "phantomjs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phantomjs/NgRUVlm3zM8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/d/optout.