def get(self): count = 0 for m_h in MisHTML.all().filter('parsed_version <', PARSER_VERSION): post_dict = helper.parse_post(m_h.html, m_h.key().name()) m = Mis(key_name = post_dict['id'], html = m_h.html, post_id = post_dict['id'], url = post_dict['url'], title = post_dict['title'], body = post_dict['body'], location = post_dict['location'], age = post_dict['age'], me_gender = post_dict['me_gender'], you_gender = post_dict['you_gender'], posted = m_h.posted) m.put() m_h.parsed_version = PARSER_VERSION m_h.put() count += 1 self.response.out.write('Parsed ' + str(count))