Jul-14-2018, 12:42 PM
Hello S,
thank you for those pointers.
I am trying to put these 2 lines into a text file
<h2 class="Title">section1</h2>
<p class ="mainparagraph">article1</p>
I managed to only get the h2 extracted
Next I wanted to get the paragraph class mainparagraph
I dont know how to append the paragraph into my text file
I can create 2 loops - opening it once then again - but that seemed a bit redundant.
I'm not sure how to put it together the final result
let me see..
thank you for those pointers.
I am trying to put these 2 lines into a text file
<h2 class="Title">section1</h2>
<p class ="mainparagraph">article1</p>
I managed to only get the h2 extracted
Next I wanted to get the paragraph class mainparagraph
I dont know how to append the paragraph into my text file
I can create 2 loops - opening it once then again - but that seemed a bit redundant.
I'm not sure how to put it together the final result
let me see..
:)
Python newbie trying to learn the ropes