N
N
naruto_hokagi2018-03-18 18:58:18
Python
naruto_hokagi, 2018-03-18 18:58:18

How to scrape a website with Scrapy?

how to scrape a site using scrapy with a class whose name is written with spaces?
response.css("li.search-item line pure")
I get an empty array as output, but it should be with text. I think it's because of the gaps

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tema_sun, 2018-03-18
@tema_sun

The class name cannot contain spaces. Different classes are listed separated by spaces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question