Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.post('/api/userlist', function (req, res) {
- var url = 'http://myanimelist.net/malappinfo.php?u='+req.userName+'&status=all&type=anime';
- http.get(url, function(resp) {
- var malRawResponse = ''
- resp.on('data', function(chunk) {
- malRawResponse += chunk;
- });
- resp.on('end', function() {
- console.log(malRawResponse);
- res.send(malRawResponse);
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement