Jonny Elliott

Results comments of Jonny Elliott

I haven't tested yet, but it's probably because 'reviews' does not appear in the text of the product's page. So you can change this line: https://github.com/prncc/steam-scraper/blob/master/steam/spiders/product_spider.py#L63 so it reads ```python...

So a quick look at for example this one: http://store.steampowered.com/app/848270/Sky_Conqueror/ results in this being scraped: ``` { "url": "http://store.steampowered.com/app/848270/Sky_Conqueror/", "reviews_url": "http://steamcommunity.com/app/848270/reviews/?browsefilter=mostrecent&p=1", "id": "848270", "title": "Sky Conqueror", "genres": ["Action", "Adventure", "Casual",...

Interesting. Also found this one where the style is also different: http://store.steampowered.com/app/831810/Bane_of_Asphodel/ `8 user reviews`

To be honest, the best thing to do seems to modify the code to access the microdata in the HTML. ```html ``` But that's beyond my scrapy/XPath skills. You could...

```python response.xpath('//meta[@itemprop="reviewCount"]/@content').extract()[0] ```

I went with this: ```python n_reviews = response.xpath('//meta[@itemprop="reviewCount"]/@content').extract() n_reviews = '0' if len(n_reviews) == 0 else n_reviews[0] loader.add_value('n_reviews', n_reviews) ``` Not the most elegant, but seems to be working.

+1 - glad you made a note of this, has helped some of the issues I had been seeing for a month :).

Maybe as a second step, it might be worth adding logic to skip these tests programmatically in the context you don't expect them to be working.