use this css selector response.css("tbody.list")
instead of response.css("div.card")
for the response.css("tbody.list")
data is easy to extract but when i use response.css("div.card")
result was some empty list with expected output.
for playerInfor in response.css("tbody.list"):
print( playerInfor.css('td.col.col-oa.col-sort span::text').getall())
output
['87', '84', '84', '82', '80', '80', '80', '80', '79', '79', '79', '79', '79', '78', '77', '77', '77', '76', '76', '76', '75', '75', '74', '74', '73', '72', '72', '70', '62', '62', '60', '58', '56']
another approach
def parse(self, response):
mydata =response.css('tbody.list td.col.col-oa.col-sort span::text').extract()
yield {
"OVA":mydata
}
#output of mydata
['87', '84', '84', '82', '80', '80', '80', '80', '79', '79', '79', '79', '79', '78', '77', '77', '77', '76', '76', '76', '75', '75', '74', '74', '73', '72', '72', '70', '62', '62', '60', '58', '56']