On Jan 31, Mike Shepanski <mjs7...@gmail.com> wrote:

> I am using IMDBPy to search a lot of foreign movies.  Only problem
> I am currently having is trying to get the AKA from the search
> results?  Is this possible easily?

While I've not tested it lately, the parser for searches made
using the 'http' data access system should return AKAs.

> Right now I am only seeing the following returned when
> searching for &quot;Adrift in Tokyo&quot;:

Unfortunately what I've said above is true only for the parser
of a list of matching movies.
Your case is a little special: searching for "Adrift in Tokyo"
you get a direct hit, and you land on the title's page.
>From here, _another_ parser fetches movie's title and other
information, but not the AKAs.
The fact is that it would be a little complex to add proper
AKAs handling to that parser (the code to handle it in movieParser
is not nice, too...)

Your options:
1. when you don't get AKAs, do this:
     imdbInstance.update(movie, 'main')
   if present, the AKAs will be collected (along with a lot of
   other information).
2. set up, using your browser, a new IMDb's account so that it never
   returns a title's page, in case of a single hit.
   get the "id" and "uu" cookies (with Firefox it's easy to see
   the content of cookies) and use them in your ~/.imdbpy.cfg configuration
   file (see the cookie_id and cookie_uu options).


HTH,
-- 
Davide Alberani <davide.alber...@gmail.com> [GPG KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to