Can I get the link behind a plain text? #60
-
LinkTo can get other Notion pages, but can I get the link behind a plain text? This is header
link1 & 2 will be plain texts and no links. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Actually i didn't quite understand the question. Sorry. But you can pick a various getters: bs.obj[56].text
Out[21]: RichTextArray(- <https://github.com/lastorel/pytion/issues/41>)
str(bs.obj[56])
Out[22]: '- <https://github.com/lastorel/pytion/issues/41>'
str(bs.obj[57])
Out[23]: '- https://github.com/lastorel/pytion/issues/41'
str(bs.obj[58])
Out[24]: '- https://github.com'
bs.obj[58].simple
Out[25]: 'https://github.com'
str(bs.obj[56])
Out[26]: '- <https://github.com/lastorel/pytion/issues/41>'
str(bs.obj[57])
Out[27]: '- https://github.com/lastorel/pytion/issues/41'
str(bs.obj[58])
Out[28]: '- https://github.com'
bs.obj[56].simple
Out[29]: 'https://github.com/lastorel/pytion/issues/41'
bs.obj[57].simple
Out[30]: 'https://github.com/lastorel/pytion/issues/41'
bs.obj[58].simple
Out[31]: 'https://github.com'
bs.obj[56].text[1].plain_text
Out[32]: '<https://github.com/lastorel/pytion/issues/41>'
bs.obj[56].text[1].href
Out[33]: 'https://github.com/lastorel/pytion/issues/41' |
Beta Was this translation helpful? Give feedback.
-
Oh! You solve my problem, thanks! (Sorry for my weak English to ask a problem not clear. I just want to get the link behind the text, which just easily calls 'href' and problem solved~) |
Beta Was this translation helpful? Give feedback.
Example from Notion:
Actually i didn't quite understand the question. Sorry.
But you can pick a various getters: