How do I get content from websites into my notes?

Hi @macedotavares

I’m on macOS and use Safari.

Would be very interested in your workflow and automation ideas on this topic.

Thanks

1 Like

I’ll be glad to help.

I currently use a couple of Alfred workflows to get content and URLs from Safari into Obsidian.

What exactly would you like to accomplish?
Do you use Alfred? Keyboard Maestro?

Cheers!

1 Like

I have Alfred and Keyboard Maestro.

I currently use the web clipper in bear.app to capture a web page with images or the parts of a Web page that I select. This does an excellent job and is literally 1 click and it’s in bear.

I’m looking for something similar for Obsidian.

In the interim would love to try out your workflows if you don’t mind sharing.

2 Likes

I’ll be glad to share my “Obsidian workflow” for Alfred. It’s mostly a collection of dynamic snippets and quick-entry methods.

However, there’s a lot of private stuff I need to clean up and some variables I have to set up for customisation before sharing, so it’ll take a few days.

In the meantime, have you seen my previous reply? It’s very rudimentary, but it may be a good start for a full-blown workflow.

2 Likes

Thanks. I hadn’t seen it but now downloaded and will give it a try

Hi, @PaulWatts

As promised, here’s my Obsidian Utilities Alfred workflow.

This one focuses primarily on my efficiency needs.

If you use Dropbox, you may also be interested in Glass Dome, which is more about future-proofing and archiving of files, images and websites.

3 Likes

Thanks @macedotavares … Much appreciated

You can now!

1 Like

How? Can you share?

For this interested: MarkDownload is now also being developed for Safari. You can already build it if you know how to load it up in Xcode. Works fine here!

2 Likes

Joplin have an excellent web clipper. Has anyone had a look at the possibility of tweaking this for Obsidian? Wish I had the skills to do it.

I’m finding Google Keep to be the best solution for getting texts out of web pages.

MarkDownload is great and I find its configuration options making it one of the best clipper tools out there.

I still can’t figure out all the meta tags that are accepted, though, so any help with that would be awesome. Aside from that, awesome little tool.

3 Likes

Hi there, not sure if this is useful to anyone, but i use this Bookmarklet in Safari on my iPad to convert / open webpages (or part of it) in Obsidian:

  1. Create a random bookmark (for example to the url of this page) and name it “2Obsidian”. Save it in your Favorites (bookmark bar.)
  2. Edit the bookmark, and change the url to:
javascript:(function()%7Bjavascript%3A%20Promise.all(%5Bimport('https%3A%2F%2Funpkg.com%2Fturndown%406.0.0%3Fmodule')%2C%20import('https%3A%2F%2Funpkg.com%2F%40tehshrike%2Freadability%400.2.0')%2C%20%5D).then(async%20(%5B%7B%0A%20%20%20%20default%3A%20Turndown%0A%7D%2C%20%7B%0A%20%20%20%20default%3A%20Readability%0A%7D%5D)%20%3D%3E%20%7B%0A%0A%20%20%2F*%20Optional%20vault%20name%20*%2F%0A%20%20const%20vault%20%3D%20%22%22%3B%0A%0A%20%20%2F*%20Optional%20folder%20name%20such%20as%20%22Clippings%2F%22%20*%2F%0A%20%20const%20folder%20%3D%20%22%22%3B%0A%0A%20%20%2F*%20Optional%20tags%20%20*%2F%0A%20%20const%20tags%20%3D%20%22%23clippings%22%3B%0A%0A%20%20function%20getSelectionHtml()%20%7B%0A%20%20%20%20var%20html%20%3D%20%22%22%3B%0A%20%20%20%20if%20(typeof%20window.getSelection%20!%3D%20%22undefined%22)%20%7B%0A%20%20%20%20%20%20%20%20var%20sel%20%3D%20window.getSelection()%3B%0A%20%20%20%20%20%20%20%20if%20(sel.rangeCount)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20container%20%3D%20document.createElement(%22div%22)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20for%20(var%20i%20%3D%200%2C%20len%20%3D%20sel.rangeCount%3B%20i%20%3C%20len%3B%20%2B%2Bi)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20container.appendChild(sel.getRangeAt(i).cloneContents())%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20html%20%3D%20container.innerHTML%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%20else%20if%20(typeof%20document.selection%20!%3D%20%22undefined%22)%20%7B%0A%20%20%20%20%20%20%20%20if%20(document.selection.type%20%3D%3D%20%22Text%22)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20html%20%3D%20document.selection.createRange().htmlText%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20return%20html%3B%0A%20%20%7D%0A%0A%20%20const%20selection%20%3D%20getSelectionHtml()%3B%0A%0A%20%20const%20%7B%0A%20%20%20%20%20%20title%2C%0A%20%20%20%20%20%20byline%2C%0A%20%20%20%20%20%20content%0A%20%20%7D%20%3D%20new%20Readability(document.cloneNode(true)).parse()%3B%0A%0A%20%20function%20getFileName(fileName)%20%7B%0A%20%20%20%20var%20userAgent%20%3D%20window.navigator.userAgent%2C%0A%20%20%20%20%20%20%20%20platform%20%3D%20window.navigator.platform%2C%0A%20%20%20%20%20%20%20%20windowsPlatforms%20%3D%20%5B'Win32'%2C%20'Win64'%2C%20'Windows'%2C%20'WinCE'%5D%3B%0A%0A%20%20%20%20if%20(windowsPlatforms.indexOf(platform)%20!%3D%3D%20-1)%20%7B%0A%20%20%20%20%20%20fileName%20%3D%20fileName.replace('%3A'%2C%20'').replace(%2F%5B%2F%5C%5C%3F%25*%7C%22%3C%3E%5D%2Fg%2C%20'-')%3B%0A%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20fileName%20%3D%20fileName.replace('%3A'%2C%20'').replace(%2F%5C%2F%2Fg%2C%20'-').replace(%2F%5C%5C%2Fg%2C%20'-')%3B%0A%20%20%20%20%7D%0A%20%20%20%20return%20fileName%3B%0A%20%20%7D%0A%20%20const%20fileName%20%3D%20getFileName(title)%3B%0A%0A%20%20if%20(selection)%20%7B%0A%20%20%20%20%20%20var%20markdownify%20%3D%20selection%3B%0A%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20var%20markdownify%20%3D%20content%3B%0A%20%20%7D%0A%0A%20%20if%20(vault)%20%7B%0A%20%20%20%20%20%20var%20vaultName%20%3D%20'%26vault%3D'%20%2B%20encodeURIComponent(%60%24%7Bvault%7D%60)%3B%0A%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20var%20vaultName%20%3D%20''%3B%0A%20%20%7D%0A%0A%20%20const%20markdownBody%20%3D%20new%20Turndown(%7B%0A%20%20%20%20%20%20headingStyle%3A%20'atx'%2C%0A%20%20%20%20%20%20hr%3A%20'---'%2C%0A%20%20%20%20%20%20bulletListMarker%3A%20'-'%2C%0A%20%20%20%20%20%20codeBlockStyle%3A%20'fenced'%2C%0A%20%20%20%20%20%20emDelimiter%3A%20'*'%2C%0A%20%20%7D).turndown(markdownify)%3B%0A%0A%20%20var%20date%20%3D%20new%20Date()%3B%0A%0A%20%20function%20convertDate(date)%20%7B%0A%20%20%20%20var%20yyyy%20%3D%20date.getFullYear().toString()%3B%0A%20%20%20%20var%20mm%20%3D%20(date.getMonth()%2B1).toString()%3B%0A%20%20%20%20var%20dd%20%20%3D%20date.getDate().toString()%3B%0A%20%20%20%20var%20mmChars%20%3D%20mm.split('')%3B%0A%20%20%20%20var%20ddChars%20%3D%20dd.split('')%3B%0A%20%20%20%20return%20yyyy%20%2B%20'-'%20%2B%20(mmChars%5B1%5D%3Fmm%3A%220%22%2BmmChars%5B0%5D)%20%2B%20'-'%20%2B%20(ddChars%5B1%5D%3Fdd%3A%220%22%2BddChars%5B0%5D)%3B%0A%20%20%7D%0A%0A%20%20const%20today%20%3D%20convertDate(date)%3B%0A%0A%20%20const%20fileContent%20%3D%20%0A%20%20%20%20%20%20%22author%3A%3A%20%22%20%2B%20byline%20%2B%20%22%5Cn%22%0A%20%20%20%20%20%20%2B%20%22source%3A%3A%20%5B%22%20%2B%20title%20%2B%20%22%5D(%22%20%2B%20document.URL%20%2B%20%22)%5Cn%22%0A%20%20%20%20%20%20%2B%20%22clipped%3A%3A%20%5B%5B%22%20%2B%20today%20%2B%20%22%5D%5D%5Cn%22%0A%20%20%20%20%20%20%2B%20%22published%3A%3A%20%5Cn%5Cn%22%20%0A%20%20%20%20%20%20%2B%20tags%20%2B%20%22%5Cn%5Cn%22%0A%20%20%20%20%20%20%2B%20markdownBody%20%3B%0A%20%20%0A%20%20document.location.href%20%3D%20%22obsidian%3A%2F%2Fnew%3F%22%0A%20%20%20%20%2B%20%22file%3D%22%20%2B%20encodeURIComponent(folder%20%2B%20fileName)%0A%20%20%20%20%2B%20%22%26content%3D%22%20%2B%20encodeURIComponent(fileContent)%0A%20%20%20%20%2B%20vaultName%20%3B%0A%7D)%7D)()%3B

On any website (select some text if you like that’s optional) click this bookmark to import into Obsidian.

Now, optionally you can set a default vault name and folder. If you want to do this you can decode the url with for example https://www.urldecoder.org/ , put in your option, and encode the url again.

Unfortunately i don’t remember where i found this, so i can’t credit the original creator :’( I think i found it somwhere mentioned on the Obsidian Twitter feed…

2 Likes

Would really like Markdownload on Safari iOS. Might be possible with iOS 15.

Hope this helps.

1 Like

I think you can use Glasp, too!

1 Like

I use Markdownload for Firefox myself, but there is also an Obsidian clipper in the Firefox add-on Website. Just search for Obsidian. Personally, the Markdownload extension fits better, and it works with anything, not just Obsidian, but I thought I’d mention the other one since I don’t see it in these comments. xP

I assume you’re primarily talking about wanting the inline images as part of a larger selection. I haven’t found a straightforward way to manage that yet (and am still reading through the rest of the thread and trying options to see if something there does the trick). But if you just want the image…I usually just right-click it, copy, and paste it into an Obsidian note. That embeds it properly.

1 Like

What about Obsidian Web Clipper? (at least I have heard of this somewhere) Obsidian Web Clipper: How to capture web pages in one click with this bookmarklet - YouTube

1 Like