MCPcopy
hub / github.com/mxrch/GHunt / DriveCommentList

Class DriveCommentList

ghunt/parsers/drive.py:655–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 self.photos_and_videos_only = folder_properties_data.get('photosAndVideosOnly')
654
655class DriveCommentList(Parser):
656 def __init__(self):
657 self.kind: str = ""
658 self.self_link: str = ""
659 self.items: List[DriveComment] = []
660
661 def _scrape(self, comment_list_data: Dict[str, any]):
662 self.kind = comment_list_data.get('kind')
663 self.self_link = comment_list_data.get('selfLink')
664 if (items_data := comment_list_data.get('items')):
665 for items_data_item in items_data:
666 items_item = DriveComment()
667 items_item._scrape(items_data_item)
668 self.items.append(items_item)
669
670class DriveComment(Parser):
671 def __init__(self):

Callers 1

get_commentsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected