Scrapy is a tool used for web – crawling
Check python version in your machine
python — version
If python is not installed, install it using
sudo apt-get install python
STEP 2: ( Install Dependencies )
Scrapy depends on two pacakages “python-setuptools” and “pythonX.X.X – dev “
NOTE: X.X.X – indicates the version Example: 2.7.3
sudo apt-get install python-setuptools python2.7.3-dev
Install Scrapy using “easy_install” or “python-pip”
To install using easy_install
To install using python-pip
pip install scrapy
To check whether it is installed correctly, enter scrapy in command line.
On successful installation you will get
While installing some software using linux terminal, we may encounter error like this
Sub-process /usr/bin/dpkg returned an error code (1)
I got this error while installing a library file “libpam0g:i386”.
Just see the 4th line of this error.
dpkg: error processing /var/cache/apt/archives/libpam0g_1.1.3-7ubuntu3_i386.deb (–unpack):
The error can be rectified by using the command
sudo dpkg -i –force-overwrite /var/cache/apt/archives/libpam0g_1.1.3-7ubuntu3_i386.deb
Given a range a to b, we have to all numbers which have prime number of divisors.
Eg: In the range 1 to 10 , the numbers are 2, 3, 4, 5, 7, 9
For a brief problem statement visit this link.
You are given a very large rectangular chocolate bar. You must cut only as 1 x 1 pieces. You are allowed to do only ‘K’ cuts at the maximum. What is maximum number of chocolate pieces can u cut ?
For a detailed problem statement click here