+ 10
Where can I find text in <p><p>?
I am trying beautifulsoup. Now I want this filter. My trg so far: https://code.sololearn.com/c6NQ0g3DIEyH/?ref=app
18 Answers
+ 15
This is one module of my info- terminal. Not the 'fine english kind', but it works fine 😉
https://code.sololearn.com/c1R3mbzTNahP/?ref=app
+ 8
I would take the plain text from bs4. Such like in this code:
https://code.sololearn.com/cqfPO672bA0x/?ref=app
+ 4
Abhay i parse the website and look for tge tag combination <p><p>some Text </p></p>
+ 4
Give the tag client side ID and access it using this ID 🤨
+ 3
Sorry but I don't understand what do you want to find!
+ 2
Oma Falk aren't you doing that already?
+ 2
Sanjay Kamath it has no id
+ 2
Hey Oma, I think I understand, does this help?
https://code.sololearn.com/cmnMFJUYNTqa/?ref=app
+ 1
Oma Falk So how do you actually want to format it ?
Edit:I haven't started with beautiful soap yet but that to me looks the most initutive and beautiful way to do it , can't think of a better way!!
+ 1
Oma Falk embed a textbox and make it read-only and give it an id 🙄
+ 1
I think you want this:
<p id="text">Some Text </p>
<script>
let text = document.getElementById('text').innerHTML
</script>
0
Abhay yes...
but in an ugly way.
0
Sanjay Kamath sounds like an interesting approach, but... how do i do that?
0
Sanjay Kamath it is not my webpage
0
its in html <p>some text</p>
0
In html
Btw...
<p>
Means starting of a paragraph
And
</p> means ending of a paragraph
- 1
it's in html
- 1
You can get it here
https://code.sololearn.com/WADRlf7Lvn6S/?ref=app