[GH-ISSUE #753] Share/send to web page #366

Closed
opened 2026-02-25 23:34:03 +03:00 by kerem · 1 comment
Owner

Originally created by @JPFrancoia on GitHub (Oct 13, 2023).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/753

Hello,

I use a RSS feed reader to read news, mostly on my phone (Android). Right now when I want to read an article later, I send it to me as email. Instead, I would like to send it to Shiori.
However, Shiori is a web app. I do have a working Shiori server. I would like to be able to click on the "share" button in my rss app to send the article link directly to Shiori.
Does anyone do that? If so, how?

Originally created by @JPFrancoia on GitHub (Oct 13, 2023). Original GitHub issue: https://github.com/go-shiori/shiori/issues/753 Hello, I use a RSS feed reader to read news, mostly on my phone (Android). Right now when I want to read an article later, I send it to me as email. Instead, I would like to send it to Shiori. However, Shiori is a web app. I do have a working Shiori server. I would like to be able to click on the "share" button in my rss app to send the article link directly to Shiori. Does anyone do that? If so, how?
kerem closed this issue 2026-02-25 23:34:03 +03:00
Author
Owner

@Monirzadeh commented on GitHub (Oct 14, 2023):

it is not prefect but you can use termux.
write a shell script and than add that shell script (you can see api documentation) to share menu (with termux-url-opener).
i think you can use curl in your script.

Update:
something like this can done what you want
replace your URL and username password in script

  1. install termux
  2. open termux and create a file with bellow command
mkdir -p ~/bin
touch ~/bin/termux-url-opener
  1. run chmod +x ~/bin/termux-url-opener
  2. open file with nano ~/bin/termux-url-opener
  3. paste bellow command (update Shiori_URL Username and Password ) and save that with volume down o press Enter to save
#!/bin/bash

# shiori settings
Shiori_URL="http://127.0.0.1:8080"
Username="shiori"
Password="gopher"

token=$(curl -s -X POST -H "Content-Type: application/json" -d '{"username": "'"$Username"'" , "password": "'"$Password"'", "remember": true}' $Shiori_URL/api/v1/auth/login | grep -oP '(?<="token":")[^"]*')

curl -s -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d '{ "url": "'"$1"'", "createArchive": false, "public": 1, "tags": [], "title": "", "excerpt": "" }' $Shiori_URL/api/bookmarks
exit
  1. volume down and x to exit editor.
  2. go to the page you want to add shiori.
  3. share menu
  4. tap on termux.
  5. if you open shiori you see that url add to shiori

now you need just share url with termux your bookmark will add to shiori.

<!-- gh-comment-id:1762781686 --> @Monirzadeh commented on GitHub (Oct 14, 2023): it is not prefect but you can use [termux](https://termux.dev/en/). write a shell script and than add that shell script (you can see api documentation) to share menu (with termux-url-opener). i think you can use curl in your script. Update: something like this can done what you want replace your URL and username password in script 1. install [termux](https://termux.dev/en/) 2. open termux and create a file with bellow command ``` mkdir -p ~/bin touch ~/bin/termux-url-opener ``` 3. run `chmod +x ~/bin/termux-url-opener` 4. open file with `nano ~/bin/termux-url-opener` 5. paste bellow command (update Shiori_URL Username and Password ) and save that with volume down `o` press Enter to save ``` bash #!/bin/bash # shiori settings Shiori_URL="http://127.0.0.1:8080" Username="shiori" Password="gopher" token=$(curl -s -X POST -H "Content-Type: application/json" -d '{"username": "'"$Username"'" , "password": "'"$Password"'", "remember": true}' $Shiori_URL/api/v1/auth/login | grep -oP '(?<="token":")[^"]*') curl -s -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d '{ "url": "'"$1"'", "createArchive": false, "public": 1, "tags": [], "title": "", "excerpt": "" }' $Shiori_URL/api/bookmarks exit ``` 6. volume down and x to exit editor. 7. go to the page you want to add shiori. 8. share menu 9. tap on termux. 10. if you open shiori you see that url add to shiori now you need just share url with termux your bookmark will add to shiori.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#366
No description provided.