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:
parent
f6b2911511
commit
8a07b7a9ce
3 changed files with 80 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue