May-04-2020, 11:40 AM
Check html again and use the correct class
Extracting html data using attributes
|
||
May-04-2020, 11:40 AM
Check html again and use the correct class
May-04-2020, 11:50 AM
sorry not sure what you mean - the html I posted was a cut and paste from the raw html. I checked again and the 'class' is correct.
This look like the same problem as you other Thread.
There did't find text because of the strange somewhat strange CSS class= naming.So there used CSS selector to find text,BS can aslo use CSS selector with select() and select_one()
So here i am writing CSS selector bye looking at tags,as mention in other Thread can copy selector from from Browser.It may be longer,but as as it work it's should be okay.
May-04-2020, 12:12 PM
actually I have just realised what is going on - the html content I am looking at is .php content and has a load of '\\' stuff in it! If I strip all that out the original code seems to work.
Interestingly if use your code on the raw html that also produces 'Develop' as the output!
May-04-2020, 02:04 PM
(May-04-2020, 12:12 PM)WiPi Wrote: Interestingly if use your code on the raw html that also produces 'Develop' as the output!Clearly the problem is that we don't have access to all of the source data,just the data you posted. Can of course fail in larger source code,where my need to to give more specific search parameter to get correct data. | ||
|