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.

enter image description here

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -