On Apr 13, 2011, at 8:46 AM, darklow wrote:
Ananlyzed error a bit more. Mostly these errors occur in Japanese actors
(actors.list), in filmography there apperars strange characters:
Sounds like a character set encoding issue.
Originally, something like actors.list is ISO-8859-1 encoded.
On Mar 31, 2011, at 6:23 AM, Michael Grier wrote:
Oh, and IMDb doesn't allow HEAD requests... you get a 405 Method not
allowed or something like that.
Right you are... no HEAD at IMDb...
In any case, a search will properly redirect to an unique hit...the secret to
happiness is to search
On Mar 29, 2011, at 7:13 AM, Michael Grier wrote:
curl -i -s http://www.imdb.com/Name?Abraham%2C%20Peter%20%28III%29; |
grep --color=never Location: | cut -d -f 2 | cut -d / -f 5
Nice :)
Also you can use HEAD instead of GET (e.g. -I/--head in curl). Checking for a
302 would not hurt
On Jan 24, 2011, at 12:28 AM, Luis wrote:
Maybe
there is some other connection for sqlobject that needs the
text_factory=str fix.
Not sure if it's the right way, but I added the following:
connectObject.text_factory = str
at line 518 of bin/imdbpy2sql.py
So now it looks like this (line