作者:
illl (ill!)
2016-04-06 07:20:55https://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
請問我那裏弄錯了?
謝謝