I am using Scrapy to scrape a page:


I tried many times and I am convinced that the following doesn't work (in the shell) and returns empty result:


this is where in chrome console, this brings me the expected result:


I checked the robot.txt for the target url and found out the following:

User-agent: *
Disallow: /~a/

I am wondering if it is not allowed to scrape it.

So my specific question is that is it possible to prevent robots from scraping on certain pages? if not what can be wrong with my code, that bring empty result in Scrapy shell.

0 Answers