Created
November 23, 2017 06:38
-
-
Save ryanlid/c7d91e67efc9d7cb84d94ced047820c1 to your computer and use it in GitHub Desktop.
爬虫js
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
const superagent = require('superagent'); | |
const url = { | |
'login_url': 'http://example.com' | |
} | |
let loginInfo = { | |
"IsRemember": "true", | |
"loginName": "admin", | |
"loginPwd":'123456' | |
} | |
const browserInfo = { | |
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36', | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | |
} | |
let cookie = 'FFF06F3C'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment