Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing List within Table #5

Closed
s3nn opened this issue Feb 26, 2019 · 2 comments
Closed

Accessing List within Table #5

s3nn opened this issue Feb 26, 2019 · 2 comments

Comments

@s3nn
Copy link

s3nn commented Feb 26, 2019

Hey,

First of all great project!

I just have a question regarding accessing lists (bullet points) within tables. Basically, I have many documents that are comprised of tables that have identical structure (rows / columns etc) and I'm trying to extract all data from all tables from multiple documents in a meaningful way. The problem is some cells contain bullet points (lists).
Is there any way to get all text in a table cell with one method?

From some testing, it appears if I use get_value / get_values it doesn't return the text that is part of the List. However, I can use get_cells --> get_lists to extract the text, but I would need to check for the presence of any lists for each cell. Lastly, I could also use get_styled_elements for each cell, but this might get tricky.

What would you recommend? Thank you in advance and keep up the excellent work.

@jdum
Copy link
Owner

jdum commented Feb 26, 2019 via email

@s3nn
Copy link
Author

s3nn commented Feb 26, 2019

Hey jd,

Thanks for your recommendation, it looks like cell.text_content is what I'm looking for!

Sincerely,
s3nn

@s3nn s3nn closed this as completed Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants