Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the script #1

Open
mmind-hub opened this issue Jan 14, 2014 · 2 comments
Open

How to run the script #1

mmind-hub opened this issue Jan 14, 2014 · 2 comments

Comments

@mmind-hub
Copy link

Thank you for this project, can you help me running the script ?

After "python setup.py install", i created 3 mogodb databases "imdb", "imdb_testing" and "movies". Downloaded all the plain text files from imdb.

But now i don't know how to run the migration,

Thank you very much!

@mmind-hub
Copy link
Author

i found a way to do it,
import plainimport
playimport.main(dir)

the movies list is imported in mongodb but the infos (genres, countries etc..) are not showing up in the database, do you know why ?

@mmariani
Copy link
Owner

Well, the script was intended to be run from a buildout environment.
It has not been run in a while, but includes download and setup of the mongodb instance, as well as the script to download raw data.

I tried it again today.
This should work:

$ git clone https://github.com/mmariani/mongo-facciocose.git -b mmovies
$ cd mongo-facciocode
$ virtualenv --no-site-packages .
$ . bin/activate
$ python bootstrap.py
$ bin/buildout
$ bin/mmovies-download

Then you can run bin/start-mongo in a shell, and bin/movies-import in another.

The (optional) virtualenv helps to avoid possible conflicting versions of setuptools.

Currently, there is a parsing error in miscellaneous-companies, I suppose the data format has changed in the last two years. I'll have a look later, unless you fix it yourself (pull request is welcome of course)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants