[okc] Photos handling in profile
This commit is contained in:
parent
72fd993b3c
commit
cba809a8d0
3 changed files with 26 additions and 12 deletions
|
|
@ -129,3 +129,8 @@ class ProfilePage(BasePage):
|
|||
profile['data']['details'].value[key] = ProfileNode(key, label, val)
|
||||
|
||||
return profile
|
||||
|
||||
class PhotosPage(BasePage):
|
||||
def get_photos(self):
|
||||
imgs = self.parser.select(self.document.getroot(), "//div[@class='pic clearfix']//img", method='xpath')
|
||||
return [img.get('src') for img in imgs]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue