-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsgg.js
42 lines (39 loc) · 1.17 KB
/
wsgg.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 2019-12-23
const request = require('superagent').agent();
const queryUrl = "http://wsgg.sbj.cnipa.gov.cn:9080/tmann/annInfoView/annSearchDG.html";
const headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36',
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
};
(async () => {
let params = {
page: 1,
rows: 20,
annNum: 1638,
annType: null,
tmType: null,
coowner: null,
recUserName: null,
allowUserName: null,
byAllowUserName: null,
appId: null,
appIdZhiquan: null,
bfchangedAgengedName: null,
changeLastName: null,
transferUserName: null,
acceptUserName: null,
regName: null,
tmName: null,
intCls: null,
fileType: null,
totalYOrN: true,
appDateBegin: null,
appDateEnd: null,
agentName: null
}
let resp = await request.post(queryUrl).set(headers)
.send(params)//.ok(res => res.status < 600);
;
console.log(resp.text);
})();