Skip to content

Can I get the link behind a plain text? #60

Answered by lastorel
XiangYi-Huang asked this question in Q&A
Discussion options

You must be logged in to vote

Example from Notion:

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/las…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lastorel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #41 on February 18, 2023 20:47.