phantom_proxy 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 832a5113bf2ab41554ead8482e718e41df8f39d7
4
- data.tar.gz: cd2a8d53139fdf1fca1ee1002f490c4cea6e57e0
3
+ metadata.gz: 47564051d021cb84c3c6cb556e1c71c22ee31566
4
+ data.tar.gz: 0037b6ffbfa839d6cd764fb5ad2bebcd48651e94
5
5
  SHA512:
6
- metadata.gz: 5e2fb08a94320dbfee2caee0ab2d5a24a712cbc05ceecb107b0af5a373edc838cddf150476e6ba8428277c29cda088e106cf6314339ea1021c9c91057665444c
7
- data.tar.gz: b51df0abe28cf99f3f474911aa7fd4176a6caeb9e3518ee996cb5c3db8f41571903a1d8ddec8b91f366943b6e99de49967446ff872e48eebe574e2ae7d7c21ae
6
+ metadata.gz: c5a2f7ad42d5f88458c629be50beaba74cc624c195cf44047e6a70d74f9ce8f16e938c95fdf522ebeb6df0d328884cddc96cb697c14f4a889f1592782aa7f3e5
7
+ data.tar.gz: b8d5f23757bbe221ed852c405b6f07dba000c98f0b60cd68db550c53a0a03e9ce340c423d03cb568cd0c86f6dfa9914a2bc776fc815f78e6575692bac8929e2d
@@ -3,6 +3,7 @@ var fs = require('fs');
3
3
  var framesWorked = 0;
4
4
  var frameCount = 1;
5
5
  var frameContent = [];
6
+ var visited_pages = [];
6
7
  var masterURL = "";
7
8
  var masterPage = null;
8
9
 
@@ -13,8 +14,10 @@ function newIFrameLoad(page, load_iframes) {
13
14
  var framestmp = document.getElementsByTagName('IFRAME');
14
15
  var frames = [];
15
16
  for (var i=0;i<framestmp.length;i++) {
16
- frames.push(framestmp[i].contentWindow.document.body.innerHTML);
17
- framestmp[i].outerHTML = "<phantomjsframe>PHANTOM_JS_FRAME_"+i+"</phantomjsframe>";
17
+ if (framestmp[i].contentWindow.document.body) {
18
+ frames.push(framestmp[i].contentWindow.document.body.innerHTML);
19
+ framestmp[i].outerHTML = "<phantomjsframe>PHANTOM_JS_FRAME_"+i+"</phantomjsframe>";
20
+ }
18
21
  }
19
22
  return frames;
20
23
  });
@@ -26,7 +29,7 @@ function newIFrameLoad(page, load_iframes) {
26
29
  console.log("PHANTOMJS_DOMDATA_WRITE:"+content);
27
30
  console.log('PHANTOMJS_DOMDATA_END');
28
31
  }
29
-
32
+
30
33
  var loadpage = function(url, referer, success, failure, configure) {
31
34
  var redirectURL = null;
32
35
 
@@ -34,6 +37,12 @@ var loadpage = function(url, referer, success, failure, configure) {
34
37
 
35
38
  page.settings.localToRemoteUrlAccessEnabled = true;
36
39
 
40
+ // page.settings.resourceTimeout = 1000;
41
+
42
+ // page.onResourceTimeout = function(request) {
43
+ // console.log('Response (#' + request.id + '): ' + JSON.stringify(request));
44
+ // };
45
+
37
46
  page.settings.userAgent = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36";
38
47
 
39
48
  page.onConsoleMessage = function (msg) { console.log(msg); };
@@ -1,3 +1,3 @@
1
1
  module PhantomProxy
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantom_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suddani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json