gdcvault: implement login

* since there is a limited number of usable concurrent sessions
we force a logout on exit.

Signed-off-by: François Revol <revol@free.fr>
This commit is contained in:
François Revol 2013-03-17 22:30:51 +01:00 committed by Florent
commit 8a07b7a9ce
3 changed files with 80 additions and 6 deletions

View file

@ -35,9 +35,19 @@ from .video import GDCVaultVideo
#import lxml.etree
__all__ = ['VideoPage']
__all__ = ['IndexPage', 'VideoPage']
class IndexPage(BasePage):
def iter_videos(self):
for a in self.parser.select(self.document.getroot(), 'section.conference ul.media_items li.featured a.session_item'):
print a
#m = re.match('id-(\d+)', a.attrib.get('class', ''))
#if not m:
# continue
# FIXME
yield None
class VideoPage(BasePage):
def get_video(self, video=None):
if video is None: