+ 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

22nd Aug 2020, 6:06 PM
Oma Falk
Oma Falk - avatar
18 Antworten
+ 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
23rd Aug 2020, 11:22 AM
Sebastian Keßler
Sebastian Keßler - avatar
+ 8
I would take the plain text from bs4. Such like in this code: https://code.sololearn.com/cqfPO672bA0x/?ref=app
23rd Aug 2020, 7:30 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 4
Abhay i parse the website and look for tge tag combination <p><p>some Text </p></p>
23rd Aug 2020, 5:18 AM
Oma Falk
Oma Falk - avatar
+ 4
Give the tag client side ID and access it using this ID 🤨
23rd Aug 2020, 10:30 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
Sorry but I don't understand what do you want to find!
22nd Aug 2020, 7:39 PM
Abhay
Abhay - avatar
+ 2
Oma Falk aren't you doing that already?
23rd Aug 2020, 6:45 AM
Abhay
Abhay - avatar
+ 2
Sanjay Kamath it has no id
23rd Aug 2020, 11:37 AM
Oma Falk
Oma Falk - avatar
+ 2
Hey Oma, I think I understand, does this help? https://code.sololearn.com/cmnMFJUYNTqa/?ref=app
24th Aug 2020, 8:31 AM
Steven M
Steven M - avatar
+ 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!!
23rd Aug 2020, 6:58 AM
Abhay
Abhay - avatar
+ 1
Oma Falk embed a textbox and make it read-only and give it an id 🙄
23rd Aug 2020, 1:44 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
I think you want this: <p id="text">Some Text </p> <script> let text = document.getElementById('text').innerHTML </script>
24th Aug 2020, 11:33 AM
Bob
Bob - avatar
0
Abhay yes... but in an ugly way.
23rd Aug 2020, 6:49 AM
Oma Falk
Oma Falk - avatar
0
Sanjay Kamath sounds like an interesting approach, but... how do i do that?
23rd Aug 2020, 1:59 PM
phil
0
Sanjay Kamath it is not my webpage
23rd Aug 2020, 2:08 PM
Oma Falk
Oma Falk - avatar
0
its in html <p>some text</p>
24th Aug 2020, 3:35 PM
Bruce Wayne
Bruce Wayne - avatar
0
In html Btw... <p> Means starting of a paragraph And </p> means ending of a paragraph
24th Aug 2020, 5:19 PM
🍎Mi_ra_go
🍎Mi_ra_go - avatar
- 1
it's in html
24th Aug 2020, 5:18 PM
Ellen
Ellen - avatar
24th Aug 2020, 6:28 PM
𝓼𝓬𝓸𝓻𝓹
𝓼𝓬𝓸𝓻𝓹 - avatar