Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Jan 22, 2017
2 parents ec47862 + 2aea1a2 commit 7a33ffa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions server/scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ var alchemy_language = new AlchemyLanguageV1({
"apikey": "3f9b78a8f4fa659b8d31a0c2c491ea216a8a92c0"
});

var params = {
text: 'IBM Watson won the Jeopardy television show hosted by Alex Trebek'
};
var params = 'IBM Watson won the Jeopardy television show hosted by Alex Trebek';

findKeywords(params, function(keywordsAsString) {
findKeywords(asldkjf, function(keywordsAsString) {
console.log(keywordsAsString);
});

Expand Down Expand Up @@ -50,7 +48,7 @@ function findKeywords(initialString, callback) {

alchemy_language.keywords(params, function (err, response) {
if (err) {
console.log('error:', err);
console.log('error with keywords');
callback(initialString);
}
else {
Expand Down

0 comments on commit 7a33ffa

Please sign in to comment.