Skip to content
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

Scriptable web scraper #1740

Closed
pbek opened this issue May 10, 2020 · 2 comments
Closed

Scriptable web scraper #1740

pbek opened this issue May 10, 2020 · 2 comments
Labels
Milestone

Comments

@pbek
Copy link
Owner

pbek commented May 10, 2020

I want to make the web scraping functionality of the web companion scriptable to allow users to decide for themselves if they want to create new notes when sending a page or selection to QOwnNotes or if they want to insert the text into the current note.
It will also be possible to add a screenshot to the note.

For #16 and #17. @ZiluTian, @wadbr

@pbek
Copy link
Owner Author

pbek commented May 12, 2020

20.5.7

  • there now is a new method insertHtmlAsMarkdownIntoCurrentNote for mainWindow
    in the scripting engine that inserts html in the current note as markdown
    (for #1740)
    • this method also downloads remote images and transforms data:image urls
      to local images stored in the media directory
    • for more information please take a look at the
      Mainwindow scripting documentation
  • added a new scripting hook websocketRawDataHook that is called when data is
    sent from the QOwnNotes Web Companion browser extension via the web browser's
    context menu (for #1740)
    • you need the QOwnNotes Web Companion 20.5.0 or higher for this to work
    • this works with either the send page and send selection feature of the
      web companion
    • if a hook implementation is found in a script no new note will be created
    • take a look at the
      handleNoteNameHook documentation
      for more information

@pbek pbek added this to the 20.5.7 milestone May 12, 2020
@pbek
Copy link
Owner Author

pbek commented May 12, 2020

There now is a new release, could you please test it and report if it works for you?

@pbek pbek closed this as completed Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant