I made a bash script to web clip pages in android
Requirements
Steps
- Install termux
- Create
bin
directory and open that directory
mkdir bin && cd bin
- Create
termux-url-opener
file
nano termux-url-opener
- Paste below code in termux-url-opener and save it
#!/data/data/com.termux/files/usr/bin/bash
curl -s --data-urlencode "u=$1" "http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=0" -o temp.md
TITLE=$(head -n 3 temp.md | tail -n 1 | tail -c +3)
am start --user 0 -a "android.intent.action.SEND" -n "net.cozic.joplin/.share.ShareActivity" -e "android.intent.extra.TITLE" "${TITLE}" -e "android.intent.extra.TEXT" "$(cat temp.md)"
rm temp.md
- Give execute permission to termux-url-opener
chmod +x termux-url-opener
- Share web page url to termux , It will automatically create note along with page content in Joplin
Demo Video
Note:
- Not all web pages support web clipping
- Some websites not clipped perfectly
Without termux(May be worked in IOS)
- Use this bookmarklet
javascript:location.href='http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=0&u='+encodeURIComponent(document.location.href);
2.Select all markdown output then share to Joplin
Thanks for @laurent for creating amazing application
Sorry for my bad english (English is not my native language)