Better mayo-clinic scraping

This commit is contained in:
Dragon Fire
2020-03-10 15:11:06 -04:00
parent c3a0d18ac3
commit 75860d35e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ module.exports = class MayoClinicCommand extends Command {
return { return {
name: $('h1').first().text().trim(), name: $('h1').first().text().trim(),
url: location, url: location,
description: header.next().text() description: header.next('p').text()
}; };
} }
return location; return location;
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "112.3.0", "version": "112.3.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {