Hi i have used this tag to find the content of tag from html file.
def everything_between(text,begin,end):
idx1=content.find(begin)
idx2=content.find(end,idx1)
return content[idx1+len(begin):idx2].strip()
content=open('page.html').read()
title=everything_between(content,'<ul class="members">','</ul>')
interesting=everything_between(content,'INTERESTING:','bodystuff')
print(title)
but in tag <ul class="member">
there are multiple <ahref>
tags,
i want to get the content between <a href>
that has <a href="/history/member/">
the script should get the values between <a href="/history/member/"></a>
.
how can i do this?