Last active
March 28, 2023 09:22
-
-
Save meteormatt/8143591 to your computer and use it in GitHub Desktop.
刷票软件
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
/** | |
* User: meteor | |
* Date: 13-12-27 | |
*/ | |
var request = require('request'); | |
var number = 0; | |
var max_number = 100; | |
function start() { | |
request.post('http://cn.technode.com/chinabang-2014/nominate', | |
{form: {'input_1': '上海够快网络科技有限公司', | |
'gform_ajax': 'form_id=1&title=1&description=1', | |
'is_submit_1': '1', | |
'gform_submit': '1', | |
'gform_unique_id': '', | |
'state_1': 'WyJhOjA6e30iLCI5OGY3YTRjNjJmMDMzZmIzODUwODQ4NTAxZTg1Y2FkZCJd', | |
'gform_target_page_number_1': '0', | |
'gform_source_page_number_1': '1', | |
'gform_field_values': '' | |
} | |
}, | |
function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
// console.log(body); | |
console.log('成功'); | |
number++; | |
if (number < max_number) { | |
process.nextTick(function () { | |
start(); | |
}); | |
} else { | |
console.log('已经刷到了你设定的最大数', max_number); | |
} | |
} | |
}); | |
} | |
start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment