extended-salmon
extended-salmon3y ago

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
NeoNomade3y ago
div.name_of_div > a
extended-salmon
extended-salmonOP3y 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
NeoNomade3y 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?