-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fd4e46
commit a7b99be
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ wp2mongo({file:'./enwiki-latest-pages-articles.xml.bz2', db: 'enwiki'}, callback | |
|
||
then check out the articles in mongo: | ||
````bash | ||
$ mongo //enter the mongo shell | ||
use enwiki //grab the database | ||
$ mongo #enter the mongo shell | ||
use enwiki #grab the database | ||
|
||
db.wikipedia.find({title:"Toronto"})[0].categories | ||
#[ "Former colonial capitals in Canada", | ||
|
@@ -37,7 +37,7 @@ you can do this. | |
# 2) get ready | ||
Install [nodejs](https://nodejs.org/en/), [mongodb](https://docs.mongodb.com/manual/installation/), and optionally [redis](http://redis.io/) | ||
|
||
``` | ||
```bash | ||
git clone [email protected]:spencermountain/wikipedia-to-mongodb.git | ||
cd wikipedia-to-mongodb | ||
npm install | ||
|
@@ -133,4 +133,5 @@ $ --> \u0024 | |
. --> \u002e | ||
``` | ||
|
||
### PRs welcome! | ||
MIT |