I want to tag nodes with terms of a vocabulary "Movie Actors".
Because there are often (a) different spellings of names, and some actors are of the (b) same name, I want to use "standardized" actor names. So I thought of using the names which uses the IMDb, too.
Is there any way to get the actor list automatically into Drupal? Otherwise I would have to look each single movie up and copy/paste the names (I dit it for ~ 200 movies - it's kind of boring).
But I don't want to import all names at once - I only want those actor names as terms, which play in my movies (each movie is a node).
IMDb offers plain text lists of actor names etc., btw.
Is there any method/way to ease things up for me? I don't want to copy/paste anymore ...
Comments
I'd be thankful for any idea
I'd be thankful for any idea =)
You'll need a script
Hi there,
Those plain text files are perfect. What you'll need to do (or have someone do) is write a script that will cycle through everything in that file and insert it into your Drupal database based on your criteria (every actor that's related to one of your movies.)
As an aside, you could also consider creating an "Actors" node type, and then use a node reference field on the movies to reference the actors. Doing this, you would have all the access to the information about the actors, not only names.
Good luck!
Node Reference
Do you know a good working solution to display all the films, when you visit the actors node? (normally you see only the actors, when you visit the movie node, but not the movies, when you visit the actor nodes - until you'd set both relations with the help of node reference).
At the moment I'd do it with the help of Views - but maybe there's a better way?
Patterns module
You might want to consider using the patterns module to add the terms. The dev version for D6 has been working solid for me. If you're good with text editors/search and replace etc, you could easily build a quick pattern and create all your terms in one shot.
The Patterns module uses this syntax to create a new term:
<term vocabulary="Actors">Brad Pitt</term>You can see how quick it could be for you to build a pattern containing all your actors then use the Patterns module to process the pattern, thus relieving you of boring and time consuming form submissions.
Thanks for the tip. you
Thanks for the tip.
Hmm. The problem is, how do I get only that actors I need?
There is also a third-party API (if I understand it correctly): http://www.trynt.com/trynt-movie-imdb-api/
and even a php script: http://projects.izzysoft.de/trac/imdbphp (found here)