Hi! I am getting 403 (Forbidden) error when trying to make a request on the site
hey @hmantv_83 ,
You can’t pepperfry website directly , so to access securely we need to provide some headers to it.
have a look at this https://minio.codingblocks.com/amoeba/7152d0e8-d6a4-4f62-94ac-ddc4d813adce.png.
I hope this will be helpful for you .
What kind of headers?
I have already tried changing the User-Agent
headers = {‘User-Agent’: ‘Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0’}
yield scrapy.Request(BASE_URL, headers = headers, callback = self.parse)
following this link.
Did you placed this code lines properly in setting file.
Can you please upload your repository on google drive and share me its link.