Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Djangoitem in scrapy

Hi i typed in the command

from scrapy.contrib.djangoitem import DjangoItem

in the scrapy shell and it gave me the following error.

In [1]: from scrapy.contrib.djangoitem import DjangoItem
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/home/abhishek/<ipython-input-1-3b57a31ce938> in <module>()
----> 1 from scrapy.contrib.djangoitem import DjangoItem

ImportError: No module named djangoitem

What would have been the issue?

Thanks in advance

like image 972
Abhishek Avatar asked Jan 28 '26 11:01

Abhishek


2 Answers

It is an external package

pip install scrapy-djangoitem
like image 156
tread Avatar answered Jan 30 '26 23:01

tread


This is now moved to another package called scrapy_djangoitem

See more here:

  • http://doc.scrapy.org/en/1.0/topics/djangoitem.html

  • https://github.com/scrapy-plugins/scrapy-djangoitem

like image 20
oscarmcm Avatar answered Jan 30 '26 23:01

oscarmcm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!