html - Issue creating the correct CSS Selector -
i have been @ while , throwing in towel help. trying scrap this page trying access every table row has information in highlighted green in following picture. no need table headers, rows.
with scrapy able each section area (where says "main campus") following selector
response.css('.datadisplaytable .datadisplaytable')
i use .datadisplaytable twice because tables trying select inside table class. after seems logical me table row after use following selector
response.css('.datadisplaytable .datadisplaytable tbody:nth-child(2)')
however, nothing selector. doing wrong?
your selector bit off. you're not trying 2nd <tbody/>
tag.
.datadisplaytable .datadisplaytable tbody tr:nth-child(n+2)
that rows, , skip header each table.
Comments
Post a Comment