How to have an enqueueLinks selector for an <a> tag that is inside a div with a specific class?

The <a> tag it self has no class and just a href attribute. I need to receive the value inside href
3 Replies
NeoNomade
NeoNomade2y ago
div.name_of_div > a
dependent-tan
dependent-tanOP2y ago
thank you. thats the enque link selector. Can i get other attributes of that a tag other than href and log its text inside the requestHandler?
NeoNomade
NeoNomade2y ago
You can get any attribute. But those are super basic Cheerio stuff . Just read a bit of cheerio documentation

Did you find this page helpful?