Re: [Imdbpy-help] No output from "search_movie.py"

2015-05-02 Thread Turbo Fredriksson
On May 2, 2015, at 3:47 PM, Turbo Fredriksson wrote:

> I'm using the Debian GNU/Linux Wheezy package (version 4.9-1).


Building the 5.0-1 package and running it worked. So sorry for the
waste of air and bandwidth :).
--
Choose a job you love, and you will never have
to work a day in your life.


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] No output from "search_movie.py"

2015-05-02 Thread Turbo Fredriksson
On May 2, 2015, at 3:47 PM, Turbo Fredriksson wrote:

> Running this thought 'strace'

In the strace, I see this:

- s n i p -
connect(3, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr("72.21.215.52")}, 16) = -1 EINPROGRESS (Operation now in 
progress)
poll([{fd=3, events=POLLOUT}], 1, 1) = 1 ([{fd=3, revents=POLLOUT}])
getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
poll([{fd=3, events=POLLOUT}], 1, 1) = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "GET /find?q=Guardians+of+the+galaxy&s=tt&mx=20 HTTP/1.0\r\nHost: 
akas.imdb.com\r\nUser-Agent: Mozilla/5.0\r\nCookie: id=\r\n\r\n", 647, 0, NULL, 0) = 647
- s n i p -

Using this in a telnet session

- s n i p -
[celia.pts/8]$ telnet 72.21.215.52 80
Trying 72.21.215.52...
Connected to 72.21.215.52 (72.21.215.52).
Escape character is '^]'.
GET /find?q=Guardians+of+the+galaxy&s=tt&mx=20 HTTP/1.0
Host: akas.imdb.com
User-Agent: Mozilla/5.0
Cookie: id=; uu=
[enter]
[enter]
- s n i p -

I then get a correct (from what it seems) output:

- s n i p -
HTTP/1.1 200 OK
Date: Sat, 02 May 2015 13:52:24 GMT
Server: Server
X-Frame-Options: SAMEORIGIN
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding,User-Agent
Set-Cookie: uu=; Domain=.imdb.com; Expires=Thu, 20-May-2083 
17:06:32 GMT; Path=/
Set-Cookie: session-id=919-3017947-8153573; Domain=.imdb.com; Expires=Thu, 
20-May-2083 17:06:32 GMT; Path=/
Set-Cookie: session-id-time=1588254745; Domain=.imdb.com; Expires=Thu, 
20-May-2083 17:06:32 GMT; Path=/
P3P: policyref="http://i.imdb.com/images/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo 
IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT 
STA HEA PRE LOC GOV OTC "
Connection: close

[java and html code etc]
- s n i p -

--
There are no dumb questions,
unless a customer is asking them.
- Unknown


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


[Imdbpy-help] No output from "search_movie.py"

2015-05-02 Thread Turbo Fredriksson
I've tried with both a valid cookie_{id,uu} and with 'None', but no matter
what I try, I get zero results:


[celia.pts/7]$ /usr/share/doc/python-imdbpy/examples/search_movie.py "Guardians 
of the galaxy"
2015-05-02 15:34:07,600 DEBUG [imdbpy] 
/usr/lib/python2.7/dist-packages/imdb/_logging.py:45: set logging threshold to 
"DEBUG"
2015-05-02 15:34:07,633 DEBUG [imdbpy.parser.http] 
/usr/lib/python2.7/dist-packages/imdb/parser/http/__init__.py:442: fetching url 
http://akas.imdb.com/find?q=Guardians+of+the+galaxy;s=tt;mx=20 (size: -1)
0 results for "Guardians of the galaxy":
movieID : imdbID : title
[celia.pts/7]$ 

I'm using the Debian GNU/Linux Wheezy package (version 4.9-1).

Using the URL mentioned in the debug output, I, of course, get 49 results.
I have not changed the 'results' option in the config file, but even if I
bump that to '100', still nothing.


Running this thought 'strace', I see, after the 'connect()' that it
gets (one char per line - recvfrom()) this (with any spelling error
or missed char from trying to decode that):


HTTP/1.1 301 Moved Permanently\r\nDate: Sat, 02 May 2015 13:26:41 
GMT\r\nServer: Server\r\nX-Frame-Options: SAMEORIGIN\r\nLocation: 
/find?q=Guardians+of+the+galaxy&s=tt&mx=20\r\nContent-Length: 0\r\nP3P: 
policyref=\"http://i.imdb.com/images/p3p.xml\",CP=\"CAO DSP LAW CUR ADM IVAo 
IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT 
STA HEA PRE LOC GOV OTC \"\r\nVary: User-Agent\r\nConnection: closed\r\n\r\n

-- 
Em - The battle cry of the cronical masturbater.
- Charlie Harper


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help