When I first started scraping, my spiders looked like this:
def parse(self, response):
price = response.css('.price::text').get()
price = price.replace('$', '').replace(',', '').strip()
price = float(price) if price else 0.0
title = response.css('h1::text').get()
title =...
Lädt...
🔗
Ähnliche Beiträge & Verwandte Nachrichten
Thematisch verwandte Security-News zu: Scrapy, Item, Loaders, Stop · 1 Treffer