X-Git-Url: https://git.r.bdr.sh/rbdr/generador-de-insultos/blobdiff_plain/1a652aac0ac1efc9100dd25e7da1105a4d515dc4..ecf7a1adea29df153a302effa79c3f2a8018c1e6:/lib/Conjugator.js?ds=inline diff --git a/lib/Conjugator.js b/lib/Conjugator.js index 5afdf15..78dd713 100644 --- a/lib/Conjugator.js +++ b/lib/Conjugator.js @@ -10,7 +10,7 @@ var request = require('request'); var Conjugator = Class({}, "Conjugator")({ prototype : { _baseUrl: "http://www.spanishdict.com/conjugate/", - _selector: ".aa .neoConj tr td", + _selector: "table .ex-tip", init : function init(config) { config = config || {}; @@ -28,7 +28,7 @@ var Conjugator = Class({}, "Conjugator")({ return reject(err); } $ = cheerio.load(body); - result = $('.vtable-word')[10]; + result = $(this._selector)[10]; if (!result) { console.log("Verb not found: ", verb);