Scrapy: Difference between revisions
From charlesreid1
No edit summary |
|||
| Line 6: | Line 6: | ||
<pre> | <pre> | ||
export PYTHONPATH="/fink/lib/python2.7/site-packages" | export PYTHONPATH="/fink/lib/python2.7/site-packages:$PYTHONPATH" | ||
</pre> | </pre> | ||
Revision as of 12:41, 12 May 2012
Installation
Prerequisites
You'll need libxml2 to use Scrapy. I installed libxml2 using Fink, which I then made accessible to my Python installation by adding it to my $PYTHONPATH variable in my .profile file:
export PYTHONPATH="/fink/lib/python2.7/site-packages:$PYTHONPATH"
Build/Install
Scrapy can be installed by downloading the tarball, unzipping it, and doing the usual Python build/install steps:
$ python setup.py build
$ python setup.py install