Roger/pycavane — Issue #3: can't loging
Author: davidtavarez
Created: 2011-12-08 19:37:19+00:00
State: open

from pycavane.pycavane import Pycavane

Cuevana = Pycavane()
Cuevana.login("davidtavarez","c6UYhv9")
for index, item in enumerate(Cuevana.get_movies()):
print index, item
/**************************************************************************************
C:\Python27\python.exe D:/pyprojects/cuevanaspider/movies.py
Traceback (most recent call last):
File "D:/pyprojects/cuevanaspider/movies.py", line 4, in
Cuevana.login("davidtavarez","c6UYhv9")
File "D:\pyprojects\cuevanaspider\pycavane\pycavane.py", line 110, in login
ret = URL_OPEN('http://www.cuevana.tv/login_get.php', data=data)
File "D:\pyprojects\cuevanaspider\pycavane\util.py", line 35, in deco
raise Exception(error)
Exception: Can't download
error: "HTTP Error 404: Not Found"
args: (, 'http://www.cuevana.tv/login_get.php'){'data': {'ingresar': True, 'recordarme': 'si', 'password': 'c6UYhv9', 'usuario': 'davidtavarez'}}

Process finished with exit code 1
**************************************************************************************/