when I am writing ' import scrapy ' to import this library in my python file, on running it is giving error "ModuleNotFoundError: No module named 'scrapy'" and i have also installed scrapy using
pip install scrapy
#enter code here
import bs4 as bs
import urllib.request
import scrapy
i = input('enter the item to be searched :')
i = i.replace(" ","")
sauce1 = urllib.request.urlopen('https://www.amazon.in/s/ref=nb_sb_noss?
url=search-alias%3Daps&field-keywords='+i).read()
soup1 = bs.BeautifulSoup(sauce1,'lxml')
s_url = []
ul_parent = soup1.find('div', class_='a-row s-result-list-parent-container')
for url in ul_parent.find_all('a'):
if "javascript" not in str(url.get('href')):
s_url.append(str(url.get('href')))
print(s_url)
what should I do to import scrapy as I want to extract items from Amazon website using "response.xpath". Please help Thank You