phantom_proxy 1.3.3 → 1.3.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 832a5113bf2ab41554ead8482e718e41df8f39d7
|
4
|
+
data.tar.gz: cd2a8d53139fdf1fca1ee1002f490c4cea6e57e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2fb08a94320dbfee2caee0ab2d5a24a712cbc05ceecb107b0af5a373edc838cddf150476e6ba8428277c29cda088e106cf6314339ea1021c9c91057665444c
|
7
|
+
data.tar.gz: b51df0abe28cf99f3f474911aa7fd4176a6caeb9e3518ee996cb5c3db8f41571903a1d8ddec8b91f366943b6e99de49967446ff872e48eebe574e2ae7d7c21ae
|
@@ -45,7 +45,7 @@ module PhantomProxy
|
|
45
45
|
|
46
46
|
@dom = invokePhantomJS(PhantomProxy.script_path, [picture, loadFrames, "\""+url+"\"", url_args_.length, url_args])
|
47
47
|
|
48
|
-
#logger.info("Opened page: "+ /Open page: (.*?) END/.match(@dom)[1])
|
48
|
+
# logger.info("Opened page: "+ /Open page: (.*?) END/.match(@dom)[1])
|
49
49
|
|
50
50
|
@ready = 503
|
51
51
|
dom_text = "Failed to load page"
|
@@ -47,7 +47,9 @@ var loadpage = function(url, referer, success, failure, configure) {
|
|
47
47
|
page.onResourceReceived = function(resource) {
|
48
48
|
if (url == resource.url && resource.redirectURL && resource.stage == "end") {
|
49
49
|
redirectURL = resource.redirectURL;
|
50
|
-
console.log('
|
50
|
+
console.log('URL_FRAME_ERROR_CODE: '+resource.status+'URL_FRAME_ERROR_CODE_END');
|
51
|
+
} else if (url == resource.url && resource.stage == "end" && resource.status != 200 && (referer!=undefined || !resource.redirectURL)) {
|
52
|
+
console.log('URL_ERROR_CODE: '+resource.status+'URL_ERROR_CODE_END');
|
51
53
|
}
|
52
54
|
};
|
53
55
|
|
@@ -118,12 +120,12 @@ function main() {
|
|
118
120
|
phantom.exit();
|
119
121
|
}, function(page) {
|
120
122
|
//page.customHeaders = {"Referer": "http://uk-amazon.icims.com/jobs/240290/account-representative---amazon-web-services---iberia/job"}
|
121
|
-
page.onResourceReceived = function (response) {
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
};
|
123
|
+
// page.onResourceReceived = function (response) {
|
124
|
+
// if (response.stage == "end" && response.url == address && response.status != 200)
|
125
|
+
// {
|
126
|
+
// console.log('URL_ERROR_CODE: '+response.status+'URL_ERROR_CODE_END');
|
127
|
+
// }
|
128
|
+
// };
|
127
129
|
});
|
128
130
|
}
|
129
131
|
}
|