Skip to content

Commit

Permalink
feat: 增加人人车provider
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 29, 2017
1 parent 0f8ad67 commit 888e8b1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/providers/人人车.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const Provider = require('../provider');
const utils = require('../utils');

module.exports = class extends Provider {
constructor() {
super();
this.url = `https://www.renrenche.com/`;
}
async resolve(ctx) {
const options = ctx.options;
const page = ctx.page;

await page.click('.js-login.login .log-status');

await page.type('input[name="phone"]', options.phone, { delay: 100 });

await utils.sleep(1000);

await page.click('.verify-btn');

// 检验是否发送成功
}
};

0 comments on commit 888e8b1

Please sign in to comment.