def parse_gmail_log_title(dic_my_activity_gmail, gmail_logs):
     list_gmail_title_logs = TakeoutHtmlParser.find_log_title(gmail_logs)
     if list_gmail_title_logs != []:
         for content in list_gmail_title_logs:
             content = str(content).strip()
             dic_my_activity_gmail['service'] = content.split('>')[1].split(
                 '<br')[0]
 def parse_assistant_log_title(dic_my_activity_assistant, assistant_logs):
     list_assistant_title_logs = TakeoutHtmlParser.find_log_title(
         assistant_logs)
     if list_assistant_title_logs != []:
         for content in list_assistant_title_logs:
             content = str(content).strip()
             dic_my_activity_assistant['service'] = content.split(
                 '>')[1].split('<br')[0]
             dic_my_activity_assistant['used_device'] = 'mobile'
 def parse_ganalytics_log_title(dic_my_activity_google_analytics,
                                analytics_logs):
     list_analytics_title_logs = TakeoutHtmlParser.find_log_title(
         analytics_logs)
     if list_analytics_title_logs != []:
         for content in list_analytics_title_logs:
             content = str(content).strip()
             dic_my_activity_google_analytics['service'] = content.split(
                 '>')[1].split('<br')[0]
 def parse_video_search_log_title(dic_my_activity_video_search, video_search_logs):
     list_video_search_title_logs = TakeoutHtmlParser.find_log_title(video_search_logs)
     if list_video_search_title_logs != []:
         for content in list_video_search_title_logs:
             content = str(content).strip()
             dic_my_activity_video_search['service'] = content.split('>')[1].split('<br')[0]
Пример #5
0
 def parse_chrome_log_title(dic_my_activity_chrome, chrome_logs):
     list_chrome_title_logs = TakeoutHtmlParser.find_log_title(chrome_logs)
     if list_chrome_title_logs != []:
         for content in list_chrome_title_logs:
             content = str(content).strip()
             dic_my_activity_chrome['service'] = content.split('>', 1)[1].split('<br')[0]