as you can see, we can use the shortcut CTRL+F2 (make sure there is now other program using that shortcut, you can change that or add another keybinding too) How it work? => we select a word, then CTRL+F2 then all the occurrence get automatically selected and so we will get a cursor at each occurrence. if we start writing, we write over each occurence
< div id="parrent" > < ul > < li > < span > < span > hi, i want you to get me!!!! </ span > </ span > </ li > < li > < span > me too please!!!! </ span > </ li > </ ul > </ div > Imaging in the example above we want to get all the texts withing the li, note there is only one text by li, but can be imbricated into multiple levels Tags. So how we get it using BeautifulSoup of course. the protperty .string don't do the job, here is a resume about .string: If a tag has only one child, and that child is a NavigableString , the child is made available as .string : (a navigable string is such a text within a tag) for ex: < span > me too please!!!! </ span > here if we have a soup of span , and we call .string then it give as " me too please!!!! ...