-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
22 lines (15 loc) · 679 Bytes
/
README
File metadata and controls
22 lines (15 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Dependencies
------------
You need Flask, Scrapy, and MongoDB. If you have pip, run the following to install the first two (easy_install works as well):
pip install Flask
pip install scrapy
pip install pymongo
Install MongoDB by heading to the MongoDB website and following the instructions there.
Running a scrape job
--------------------
1. Start MongoDB server (follow instructions from MongoDB website).
2. cd into the soc_crawler directory. The scrapy project writes to MongoDB, so make sure mongod is running. Then (assuming you've installed scrapy) run:
scrapy crawl soc_modules
Running the webserver:
---------------------
python server.py