DEV Community

Jordan Does Advanced CSS Selectors

Jordan Hansen on June 01, 2020

Demo code here Today I’m going back to the Roller Coaster Database. I had a doctoral student reach out asking for some help with scraping the rcdb...
Collapse
 
chuckhendo profile image
Carl Henderson

Instead of hard coding an if/else, you could also loop through the rows and select the span if it exists, otherwise select the entire td. That would probably be a bit more flexible