Size: a a a

2020 April 23

D

D3301 in Scrapy
Thanks Mihail!
источник

MV

Maxim Voloshko in Scrapy
Михаил Синегубов
да простят меня боги за мой английский 😂
Сойдёт)
источник

D

D3301 in Scrapy
I'm Serbian so I understand a little bit if Russian 😅
источник

AR

Andrey Rahmatullin in Scrapy
title = redbull.xpath('// - неправильно же
источник

AR

Andrey Rahmatullin in Scrapy
это ж будет абсолютный путь опять
источник

AR

Andrey Rahmatullin in Scrapy
D3301 why are you using a loop? are there multiple products on that page?
источник

AR

Andrey Rahmatullin in Scrapy
and looping through all divs doesn't look correct in any case
источник

AR

Andrey Rahmatullin in Scrapy
price isn't scraped because that element is created by JS
источник

МС

Михаил Синегубов in Scrapy
Andrey Rahmatullin
это ж будет абсолютный путь опять
там заголовок один на странице, а вот прайс да, там надо к карточке товара вязаться
источник

D

D3301 in Scrapy
Yes, you are correct I shouldn't use loop. I was just trying to pull text from that one product @wrar42
источник

D

D3301 in Scrapy
Andrey Rahmatullin
price isn't scraped because that element is created by JS
Copy that. Is there a way to scrape it?
источник

К

Кирилл in Scrapy
источник

AR

Andrey Rahmatullin in Scrapy
if you only need the price it's available in the <script type="application/ld+json"> data on the page, if you need some other things that are not rendered by the server you need to parse the huge object in <script id="serverApp-state" type="application/json">
источник

AR

Andrey Rahmatullin in Scrapy
or maybe make a XHR request but I guess it returns the same data
источник

К

Кирилл in Scrapy
D3301
Copy that. Is there a way to scrape it?
i wrote for you
источник

D

D3301 in Scrapy
источник

D

D3301 in Scrapy
this is amazing!
источник

D

D3301 in Scrapy
thank you ! :D
источник

D

D3301 in Scrapy
hmm for some reason the price is different then on the website. It works perfectly except for the price. I will try to figure out tomorrow why. But thank you @trefto  you are a legend!
источник

К

Кирилл in Scrapy
Looks like they're the same as for me, 11.25$
источник