def _export_people_names(self, filename): Utils.set_to_print_file() s = '' for k in self._keys: s += self._data[k].get_name() s += Utils.get_line_break() Utils.write_file(filename, s)
def export_html(self, filename): Utils.set_to_print_web() s = '' for k in self._keys: d = self._data[k] s += d.get_name_google_markdown() if d.get_original_name(): s += ' (%s)' % d.get_original_name() s += ': ' s += Utils.get_line_break() s += d.get_best_face_markdown() s += Utils.get_line_break() s += ' '.join([ d.get_website_markdown(), d.get_facebook_markdown(), d.get_twitter_markdown(), d.get_vimeo_markdown(), d.get_linkedin_markdown(), d.get_instagram_markdown(), d.get_youtube_markdown(), d.get_github_markdown(), d.get_researchgate_markdown(), d.get_scholar_markdown() ]) s += Utils.get_separator() s += DEBUG_HTML_SCRIPT s = htmlmin.minify(markdown(s)) Utils.write_file(filename, s)
def _export_json(self, filename): Utils.write_file(filename, self.to_json())