Compare commits

...

6 Commits

Author SHA1 Message Date
Sven Slootweg 2f8d3dcca2 1.0.2 8 years ago
Sven Slootweg a16a01af22 Merge branch 'Tsenzuk-master' 8 years ago
Sergey 8b0e29ae08 td.country contains countryname itself 8 years ago
Sergey 0b59ed88cb td.country contains countryname itself 8 years ago
Sergey e5c7cecc43 Country tag changed 8 years ago
Sergey 6edbdfe116 Country tag changed 8 years ago

@ -19,12 +19,12 @@ module.exports = (html) ->
rows.each ->
element = $(this)
timestamp = element.children(".timestamp").attr("rel")
port = element.children("td:nth-of-type(3)").text().replace("\n", "")
country = element.find("td .country").parent().attr("rel")
port = element.children("td:nth-of-type(3)").text().replace(/\n/g, "").trim()
country = element.find("td.country").attr("rel")
speed = element.find("td .progress-indicator").eq(0).attr("value")
connectionTime = element.find("td .progress-indicator").eq(1).attr("value")
protocol = element.children("td:nth-of-type(7)").text()
anonymity = element.children("td:nth-of-type(8)").text()
protocol = element.children("td:nth-of-type(7)").text().replace(/\n/g, "").trim()
anonymity = element.children("td:nth-of-type(8)").text().replace(/\n/g, "").trim()
ipSegments = []

@ -21,12 +21,12 @@ module.exports = function(html) {
var anonymity, connectionTime, country, element, ipBlock, ipSegments, port, protocol, speed, timestamp;
element = $(this);
timestamp = element.children(".timestamp").attr("rel");
port = element.children("td:nth-of-type(3)").text().replace("\n", "");
country = element.find("td .country").parent().attr("rel");
port = element.children("td:nth-of-type(3)").text().replace(/\n/g, "").trim();
country = element.find("td.country").attr("rel");
speed = element.find("td .progress-indicator").eq(0).attr("value");
connectionTime = element.find("td .progress-indicator").eq(1).attr("value");
protocol = element.children("td:nth-of-type(7)").text();
anonymity = element.children("td:nth-of-type(8)").text();
protocol = element.children("td:nth-of-type(7)").text().replace(/\n/g, "").trim();
anonymity = element.children("td:nth-of-type(8)").text().replace(/\n/g, "").trim();
ipSegments = [];
ipBlock = element.find("td:nth-of-type(2) > span");
ipBlock.contents().each(function() {

@ -1,6 +1,6 @@
{
"name": "hma-proxy-parse",
"version": "1.0.1",
"version": "1.0.2",
"description": "Parses proxies out of HideMyAss' public proxy list.",
"main": "index.js",
"scripts": {

Loading…
Cancel
Save