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
div.name_of_div > a
dependent-tanOP•2y 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?
You can get any attribute. But those are super basic Cheerio stuff .
Just read a bit of cheerio documentation