basilioss / obsidian-scrapers Goto Github PK
View Code? Open in Web Editor NEWGet information from link for Obsidian
License: MIT License
Get information from link for Obsidian
License: MIT License
The Description parameter only pull the truncated, short description. My JS is not good. Is there any way to get the full text from a video?
BTW: I really love this plugin!
I force youtube to give content in needed language with hl
and gl
parameters and returned page actually contains data in that language. But script takes another parts of the page, with original language.
Link to test: https://www.youtube.com/watch?v=KLou7Rz5Onw&gl=US&persist_gl=1&hl=en&persist_hl=1
or simpler one to the same video, works too: https://www.youtube.com/watch?v=KLou7Rz5Onw&hl=en&persist_hl=1
The Goodreads script has been working until recently when Goodreads changed their page format. I just get an error when I attempt to use the script now. I've attached the log file if that helps.
Is there something that can be done to repair it? Is there something I need to do on my side?
Something really nice would be to support local images that can be downloaded and used in these scripts.
I tried adding the following code to goodreads.js but for some reason I got an ERR_CONNECTION_REFUSED
error
First line:
fs = require('fs');
Later in the case switch:
case "coverLocal":
let coverUrl = $("img[id='coverImage']").src || "";
let image = await tp.obsidian.request({ coverUrl });
url_parts = coverUrl.split(".");
let extension = url_parts[url_parts.length - 1]; // Assumes there is an extension, TODO: deal with that
let filename = new Date().getTime().toString() + "." + extension;
fs.writeFile(filename, image);
return "[["+filename+"]]";
I find out, there are videos with translated description and title for many languages. If I open it in my account, I see it in my preferable language. If the script gets it, it gets in original language. You can check it for example with this video: https://www.youtube.com/watch?v=9IQZIdpJ05Q - it's Italian, but I would like to have it in English or German.
So, would it be possible to set preferable language or languages for the script?
If I put id: <% tp.user.youtube('id', tp, doc) %>
into template, it doesn't work and in the developers console I see following message:
Templater Error: Template parsing error, aborting.
Cannot read properties of null (reading 'content')
log_error @ plugin:templater-obsidian:61
errorWrapper @ plugin:templater-obsidian:81
await in errorWrapper (async)
append_template_to_active_file @ plugin:templater-obsidian:3700
onChooseItem @ plugin:templater-obsidian:2391
t.onChooseSuggestion @ app.js:1
t.selectSuggestion @ app.js:1
e.useSelectedItem @ app.js:1
e.onSuggestionClick @ app.js:1
s @ enhance.js:1
Could you please check?
would it be possible to access data from linkedin as well?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.