Skip to content

Commit

Permalink
readme for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Sep 20, 2017
1 parent 8fd4e46 commit a7b99be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 git@github.com:spencermountain/wikipedia-to-mongodb.git
cd wikipedia-to-mongodb
npm install
Expand Down Expand Up @@ -133,4 +133,5 @@ $ --> \u0024
. --> \u002e
```

### PRs welcome!
MIT

0 comments on commit a7b99be

Please sign in to comment.