iOS Shortcut App - Copy/Paste Workflow

Page 2 of 2 (32 items) < Previous 1 2
This post has 31 Replies | 5 Followers

Posts 8
David Goodman | Forum Activity | Replied: Sat, Oct 12 2019 7:30 PM

OK, I made some progress. I figured out that you have to use “Show more” under the “Get contents” step and put in your API key as an authorization header. 

Now, the clipboard contents looks like this: 

{"passages":["James 1:4\n\nAnd let steadfastness have its full effect, that you may be perfect and complete, lacking in nothing. (ESV)"],"query":"James 1:4","parsed":[[59001004,59001004]],"canonical":"James 1:4","passage_meta":[{"chapter_start":[59001001,59001027],"prev_verse":59001003,"prev_chapter":[58013001,58013025],"canonical":"James 1:4","chapter_end":[59001001,59001027],"next_verse":59001005,"next_chapter":[59002001,59002026]}]}

How do I clean that up? Is there are regular expression to delete everything after (ESV)? 

I have a step to replace \n with a blank space, but that may need to be repeated several times. I am not sure.

https://www.icloud.com/shortcuts/0b945901d3a4435baeeaa02715bd1033

This will be a major help if I can figure it out. Thanks!

Posts 18
S.Walker | Forum Activity | Replied: Tue, Oct 15 2019 2:39 PM

Are you missing this step? 

  • Get "Value" for "passages" in "contents of URL"

That step comes after the Get contents of "URL (check the screen shots I put earlier in this thread.

I think that formats the search properly. After this step is when I run the Replace "\n" with " " in "Dictionary Value."

Posts 8
David Goodman | Forum Activity | Replied: Wed, Oct 23 2019 2:35 PM

Thanks so much. I didn’t realize I missed that step, but that is the fix. I can share the shortcut with anyone who is interested.

Posts 1
Mike | Forum Activity | Replied: Fri, Jan 3 2020 3:46 AM

Hi, if you still have this, I’d like the shortcut. 

Posts 8
David Goodman | Forum Activity | Replied: Fri, Jan 3 2020 7:12 AM

https://www.icloud.com/shortcuts/355adeff99ef46afa67092741656f357

here is the link. you just need to type in the passage in the form of John 1:1-5 and it can copy and paste any length of text. 

I use this as a subshortcut in other shortcuts like scripture memory and sending Bible study emails. 

Posts 10
Jon Beane | Forum Activity | Replied: Fri, Jan 3 2020 8:42 AM

Brilliant! Thank you! Big help!

Posts 2
Jake Bondurant | Forum Activity | Replied: Mon, Apr 20 2020 7:30 PM

This is just what I was looking for! Do you think there is a possibility of using other versions? Like the CSB or a Greek version?

Posts 18
S.Walker | Forum Activity | Replied: Mon, Apr 20 2020 7:44 PM

I’m not sure if the CSB has an API access like the ESV does (api.esv.org).

Posts 2
Jake Bondurant | Forum Activity | Replied: Mon, Apr 20 2020 7:47 PM

I came across this:

https://scripture.api.bible/

Posts 18
S.Walker | Forum Activity | Replied: Mon, Apr 20 2020 8:54 PM

That doesn’t include the CSB. You can see what they have for English Bibles here: https://docs.api.bible/docs/bibles-1

Posts 7
Mason Phillips | Forum Activity | Replied: Sat, May 2 2020 6:49 AM

For a more robust solution, I recommend using python and Pythonista on iOS. I made a script that will take a highlighted passage and retrieve it. To do this, I use the `requests` and `beautifulsoup4` packages to sign in to my Logos account on Biblia.com and essentially scrape the text from that verse. This can be done on any Bible site, but by logging in, I get access to the versions I own. After I scrape the content, I format it for my purposes (multimarkdown) and paste it back into my editor. Pythonista has an iOS keyboard that lets me assign scripts as buttons. Essentially, I select a passage, push the button, wait for a second, and the passage gets pasted into my document. I wish the Logos API was useful and that the URL scheme was too, but since they are not, I had to get creative.

Posts 18
S.Walker | Forum Activity | Replied: Thu, May 7 2020 11:49 AM

I have Pythonista but didn't know what/how to use it for this purpose.  If you're willing, I'd like to learn more about how to do this.

Page 2 of 2 (32 items) < Previous 1 2 | RSS