Unable to find all instances of a word with page.search_for() #1608
-
Hi, I am currently trying to use the
Here is a snippet of the code I currently have:
Please let me know if there is any other information you need me to provide. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
For classifying it as a bug, mandatory data are missing - primarily the file in question. |
Beta Was this translation helpful? Give feedback.
-
Could be several explanations, e.g. you may be looking at images instead of at some text, it could be drawings that look like text, etc. |
Beta Was this translation helpful? Give feedback.
Could be several explanations, e.g. you may be looking at images instead of at some text, it could be drawings that look like text, etc.
Impossible to say with the file.
As in intermediate track down help, make a sorted list of all words on the page:
page.get_text("words", sort=True)
. This list has tuple items looking like(x0, y0, x1, y1, "word", block_n, line_n, word_n)
. The first 4 tuple items are rectangle coordinates of the word.Should give you more clou what is going on.