Use webmagic to crawl the title

I now have a project that needs webmagic to crawl the title, but the title of this site has two styles xpath

xpath("//div[@class="title"]/text()"),
3
css("div.title")



this is not what I need

I don"t know if there is a way to set up a xpath or use css and regular expressions to complete crawling all the headings
everybody help, because the first contact with the crawler has a lot of do not understand, thank you

May.27,2022

just change xpath ("/ / div [@ class=" title "] / text ()") to xpath ("/ / div [@ class=" title "] / allText ()")

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b999-2c29c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b999-2c29c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?