Skip to content

Instantly share code, notes, and snippets.

@meteormatt
Last active March 28, 2023 09:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meteormatt/8143591 to your computer and use it in GitHub Desktop.
Save meteormatt/8143591 to your computer and use it in GitHub Desktop.
刷票软件
/**
* 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