Hello I'm trying to get the content of my class top. All I need is the link (without any tags) and and the value of the span class title in bash. I do something like this (for test) but this dose not give any answer. What I am doing wrong ?
curl -s https://www.website.com/q?search=violet | grep -e "^<span class=\"top\">(.*?)</span>"
<div class="video-item-list">
<span class="age0" title="0"></span>
<span class="hsa" title="tex"></span>
<span class="Encour" title="test"></span>
<a href="https://www.website.com/a/1973">
<img class="image lazy" width="100" height="40"
data-original="https://img.com/i?jpg=123">
</a>
<span class="top">
<a href="https://www.website.com/a/1973">
<span class="title">Violet test</span>
</a>
<span class="episode"> 250
</span>
<a class="team"></a>
</span>
<span class="info"> 2017</span>
</div>
<div id="n" class="video-item-list-days">
<h5>Letter n</h5>
</div>