-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diigo #45
Comments
You can ignore the error, it's not caused by the code running your provider. There are some issues with your selectors, it should be '.Titleinner' instead of 'Titleinner'. More importantly, you're mixing single and double quotes in your expressions which is what's breaking things and preventing the request from being made. For example, replace the following line:
with:
|
True, the doc says that if there are errors it probably is a problem with the definition, but as I saw that one I skipped that part. Anyway, with this one works now: {
search: [
{
type:'link',
query:'https://www.diigo.com/search?adSScope=my&what={{term}}&snapshot=no',
translate:'parseHTML(response)',
name:{
selector:'.Titleinner',
expression:'element.textContent.trim()'
},
link:{
selector:'.Titleinner',
expression:'element.firstElementChild.href'
},
description:{
selector:'.Titleinner',
expression:'element.textContent.trim()'
}
}
]
} |
Works great, thanks! Can you please create a pull request or commit directly to master? |
No description provided.
The text was updated successfully, but these errors were encountered: