How to identify a line, then copy every line after it until the next </div> tag
-
I need to identify a line, then copy every line after it until the next </div> tag, into a similar space in the next view.
The first line is <h2 class=“title”>1</h2> and the number after “title”> changes every section.
In the 2nd file, the line that identifies where it needs to be copied to is:
<div data-content=“1” class=“selected cd-tab”>I’m sure there’s a way to do this in Python, but I’ve only started figuring it out today.
Can anyone help me out?Hopefully by writing the code for me to adjust as needed?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login