def _parse_metadata(self):
        lat, lng = self._get_lat_lng()

        artist = self.metadata.get('Artist', "").replace(u'\x00', '').strip()
        if artist:
            self.users.append(artist)
            res = data_parser.DataParser(artist)
            self.emails.extend(res.emails())
        str_copy = self.metadata.get('Copyright', "").replace(u'\x00',
                                                              '').strip()
        if str_copy:
            self.users.append(str_copy)
            res = data_parser.DataParser(str_copy)
            self.emails.extend(res.emails())
        self.emails = self.unique(self.emails)
        taken = self.metadata.get('DateTime', "").strip()
        if taken:
            self.misc.append({'taken': taken})
        if lat and lng:
            self.misc.append({'gps': {'latitude': lat, 'longitude': lng}})
        vendor = self.metadata.get('Make', None)
        model = self.metadata.get('Model', None)
        if vendor or model:
            self.misc.append({
                'camera': {
                    'vendor': vendor,
                    'model': model
                },
            })
 def getEmails(self):
     res = data_parser.DataParser(self.text)
     return res.emails()
Beispiel #3
0
 def get_hostnames(self):
     rawres = data_parser.DataParser(self.totalresults, self.word)
     return rawres.hostnames()
Beispiel #4
0
 def get_files(self):
     rawres = data_parser.DataParser(self.totalresults, self.word)
     return rawres.fileurls(self.filetype)
Beispiel #5
0
 def get_emails(self):
     rawres = data_parser.DataParser(self.totalresults, self.word)
     return rawres.emails()