Rob Larson | 5 Oct 2010 00:53
Picon

Setup for Ubuntu

Hello,

I am attempting to setup IMDBPY locally on my home server. I have the
database built and populated with the imdb data, but now I am having a
heck of a time getting imdbpykit setup and running under apache. I have
tried to follow the directions as closely as possible but I am unsure as
to what to do with the following. 

Apache with mod_wsgi
  Copy the sample files for imdbpykit.ini and imdbpy.wsgi to any directory.(I have these files in my home directory)
  Copy the sample file for wsgi.conf to the Apache configuration directory ( i am assuming /etc/apache2?)
  and edit the paths for the imdbpy.wsgi script and the static files. ( I am assuming the path to my home directory?)

Don't forget to make sure that the web server has write permissions on the cache
directory (under web/static).  (Not sure what this is talking about or the location)

Now once all this is done, how would I access it? 

Thank You For any assistance.

Rob

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
Davide Alberani | 6 Oct 2010 09:13
Picon
Gravatar

Re: Setup for Ubuntu

On Tue, Oct 5, 2010 at 12:53 AM, Rob Larson <dewmanstl@...> wrote:
> Hello,

Hi!
I've never used it under apache, but I try to help.

>  Copy the sample files for imdbpykit.ini and imdbpy.wsgi to any directory.(I have these files in my home directory)

Ok, as long as it's readable for the www-data user, used by apache on Ubuntu.

>  Copy the sample file for wsgi.conf to the Apache configuration directory ( i am assuming /etc/apache2?)

Probably for apache2 the right place is /etc/apache2/conf.d/

>  and edit the paths for the imdbpy.wsgi script and the static files. ( I am assuming the path to my home directory?)

WSGIScriptAlias must point to imdbpykit.wsgi and the Directory to
the path of the 'imdbpykit' directory.
Also, the '/static' alias must point to the correct directory.

> Don't forget to make sure that the web server has write permissions on the cache
> directory (under web/static).  (Not sure what this is talking about or the location)

The above directory (imdbpykit/web/static/)

> Now once all this is done, how would I access it?

Assuming that the WSGIScriptAlias directive refers to /imdbpykit ,
you just have to point your browser to http://localhost/imdbpykit

(Continue reading)

H. Turgut Uyar | 6 Oct 2010 13:33
Picon
Favicon

Re: Setup for Ubuntu

On 10/06/2010 10:13 AM, Davide Alberani wrote:
> On Tue, Oct 5, 2010 at 12:53 AM, Rob Larson <dewmanstl@...> wrote:
>>  Copy the sample file for wsgi.conf to the Apache configuration directory ( i am assuming /etc/apache2?)
> 
> Probably for apache2 the right place is /etc/apache2/conf.d/
> 

Yes, it should be /etc/apache2/conf.d/

>>  and edit the paths for the imdbpy.wsgi script and the static files. ( I am assuming the path to my home directory?)
> 

The path for imdbpy.wsgi is your home directory (plus "imdbpy.wsgi"),
the path to the static files is:
  .../site-packages/imdbpykit/web/static
This directory contains a hidden file (.environment.xml), for which the
server also needs write permissions.

Bye,

--

-- 
H. Turgut Uyar <uyar@...> [GPG KeyID: 0xEAF45FB8]
http://web.itu.edu.tr/uyar/

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
(Continue reading)

Rob Larson | 6 Oct 2010 15:43
Picon

Re: Setup for Ubuntu

On 10/06/2010 03:13 AM, Davide Alberani wrote:
> On Tue, Oct 5, 2010 at 12:53 AM, Rob Larson <dewmanstl@...> wrote:
>   
>> Hello,
>>     
> Hi!
> I've never used it under apache, but I try to help.
>
>   
>>  Copy the sample files for imdbpykit.ini and imdbpy.wsgi to any directory.(I have these files in my home directory)
>>     
> Ok, as long as it's readable for the www-data user, used by apache on Ubuntu.
>
>   
>>  Copy the sample file for wsgi.conf to the Apache configuration directory ( i am assuming /etc/apache2?)
>>     
> Probably for apache2 the right place is /etc/apache2/conf.d/
>
>   
>>  and edit the paths for the imdbpy.wsgi script and the static files. ( I am assuming the path to my home directory?)
>>     
> WSGIScriptAlias must point to imdbpykit.wsgi and the Directory to
> the path of the 'imdbpykit' directory.
> Also, the '/static' alias must point to the correct directory.
>
>   
>> Don't forget to make sure that the web server has write permissions on the cache
>> directory (under web/static).  (Not sure what this is talking about or the location)
>>     
> The above directory (imdbpykit/web/static/)
(Continue reading)

Richard Peng | 7 Oct 2010 20:42
Picon

Fetch Trailer URLs

Can imdbpy fetch the media file URL for a movie's trailers?

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
Davide Alberani | 9 Oct 2010 12:37
Picon
Gravatar

Re: Fetch Trailer URLs

On Thu, Oct 7, 2010 at 8:42 PM, Richard Peng
<sanguinepenguinx@...> wrote:
> Can imdbpy fetch the media file URL for a movie's trailers?

No, at this time the URLs of movie trailers are not retrieved.

We may consider to add them, but right now the problem is that a recent
redesign of the IMDb pages has broken a lot of parsers, and there's a lot
of work to do.
See: http://groups.google.com/group/imdbpy-devel/browse_thread/thread/b1226f91645fd209

--

-- 
Davide Alberani <davide.alberani@...>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
Davide Alberani | 10 Oct 2010 14:46
Picon
Gravatar

Re: To list all movies from director

On Wed, Oct 6, 2010 at 11:18 AM, Dominik Schmid <schmid@...> wrote:
>
>    movies = s_result[0].get('movies')

Here you should probably use .get('actor') or .get('actress'),
but as said this is not the real problem: the fact is that
actually IMDbPY is broken and these information are not
parsed at all. :-/

Unfortunately, I fear it will stay this way for some weeks, still: my free
time is next to zero, lately. :-(

HTH,
--

-- 
Davide Alberani <davide.alberani@...>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
Michael Seiwald | 15 Oct 2010 14:05
Picon

'akas' key does not contain all AKAs

  Hello,

I'm trying to create a list of English titles of my movies. Therefore I 
search through the list of akas for strings like 'USA', 'English title', 
'UK' and so on. I've came through a case where this does not work well:

http://www.imdb.com/title/tt0075860/releaseinfo#akas

import imdb
i=imdb.IMDb()
m=i.get_movie('075860')
i.update(m)
m['akas']
[u'CE3K::USA (informal short title)', u'The Special Edition: Close 
Encounters of the Third Kind::USA (reissue title)', u'Encuentros 
cercanos del tercer tipo::Argentina, Peru', u'N\xe4rkontakt
  av tredje graden::Finland (Swedish title), Sweden', u'Rencontres du 
troisi\xe8me type::Canada (French title), France', u'Bliskie spotkania 
trzeciego stopnia::Poland', u'Blizka setkani tretih
o druhu::Czechoslovakia (Czech title)', u'Contatos Imediatos de Terceiro 
Grau::Brazil', u'Contatos Imediatos do Terceiro Grau::Brazil', 
u'Encontres a la tercera fase::Spain (Catalan title)',
u'Encontros Imediatos do 3\xba Grau::Portugal', u'Encuentros en la 
tercera fase::Spain', u'Encuentros en la tercera fase: Edici\xf3n 
especial::Spain (reissue title)', u'Harmadik t\xedpus\xfa
tal\xe1lkoz\xe1sok::Hungary', u'Incontri ravvicinati del terzo 
tipo::Italy', u'Kolmannen asteen yhteys::Finland', u'Michi tono 
s\xf4g\xfb::Japan', u'N\xe6rkontakt af tredie grad::Denmark', u'
N\xe6rkontakt av tredje grad::Norway (imdb display title)', u'Stenes 
epafes tritou typou::Greece (transliterated ISO-LATIN-1 title)', 
(Continue reading)

Davide Alberani | 16 Oct 2010 09:29
Picon
Gravatar

Re: 'akas' key does not contain all AKAs

On Fri, Oct 15, 2010 at 2:05 PM, Michael Seiwald <michael@...> wrote:
> I've came through a case where this does not work well:
>
> http://www.imdb.com/title/tt0075860/releaseinfo#akas

I'll try to take a look at the problem; unfortunately right now my
free time is almost non-existent and IMDbPY is facing serious
problems due to a recent IMDb redesign.  See:
  http://groups.google.com/group/imdbpy-devel/browse_thread/thread/b1226f91645fd209

Thank you for the bug report!
--

-- 
Davide Alberani <davide.alberani@...>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
Michael Seiwald | 16 Oct 2010 22:15
Picon

Re: 'akas' key does not contain all AKAs

  On 10/16/2010 09:29 AM, Davide Alberani wrote:
> I'll try to take a look at the problem; unfortunately right now my
> free time is almost non-existent and IMDbPY is facing serious
> problems due to a recent IMDb redesign.  See:
>    http://groups.google.com/group/imdbpy-devel/browse_thread/thread/b1226f91645fd209
>
Ah, I see. Anyway thank you very much for this very useful library. Most 
of what I use works quite well despite of the IMDb redesign.
> Thank you for the bug report!
Glad to help!

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev

Gmane