I want to extract from following html code:
<li>
<a test="test" href="abc.html" id="11">Click Here</a>
"for further reference"
</li>
Run Code Online (Sandbox Code Playgroud)
I'm trying to do with following extract command
response.css("article div#section-2 li::text").extract()
Run Code Online (Sandbox Code Playgroud)
But it is giving only "for further reference" line And Expected output is "Click Here for further reference" as a one string. How to do this? How to modify this to do the same if following patterns are there: