aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2015-09-05 20:29:06 -0500
committerBen Beltran <ben@nsovocal.com>2015-09-05 20:29:06 -0500
commitecbfe403e5b260939e84a4f577eba324a7732d4f (patch)
tree0f707b905a2f3ce1120dacb23e61cc768be73045 /lib
parent8b725968352fbae434d03d0bbf2c5e206ee342c1 (diff)
Use the selector prop
Diffstat (limited to 'lib')
-rw-r--r--lib/Conjugator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Conjugator.js b/lib/Conjugator.js
index 5afdf15..d45e1fe 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: ".vtable-word",
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);