https://www.discogs.com/login?nologin=1&return=%2Fsell%2Fhistory%2F1985784%3F
我想用request(这个 https://github.com/request/request) 登入这个网页
(登入form的action也是这个网址)
这是我用的code:
request.post({
uri:
"https://www.discogs.com/login?nologin=1&return=%2Fsell%2Fhistory%2F1985784%3F",
form: {username: "xxxx", password: "yyyy"}
}, function (err, res, body) {
if (err) console.log(err);
console.log(body);
});
不过body还是一样的页面
我希望能得到登入后的页面
https://www.discogs.com/sell/history/1985784
请问我那里弄错了?
谢谢