Description: server method
Submitted on May 6, 2015 at 02:47 AM

Section 1 (JavaScript)

Meteor.methods({
        gimmetitle: function () {

            var url = 'http://wiki.warthunder.com/index.php?title=B-17G_Flying_Fortress';

            request(url, function(err, response, body) {
                $ = cheerio.load(body);
                var text = $('.flight-parameters td').text();
                console.log(text);
                
                return text;
            });          
        }
    });