'Iterate through the data and create the necessary output.txt file'

def create_file(self):

    with open('output.txt', 'w+') as output_file:
        for data_element in self.data:
            name = data_element.get('name')
            code = data_element.get('code')
            first_paragraph = data_element.get('first_paragraph')
            abstract = '{}{}{}'.format(code, ('<br>' if code else ''), first_paragraph)
            url = '{}{}'.format(SOUP_HOME, data_element.get('anchor'))
            list_of_data = [name, 'A', '', '', '', '', '', '', SOUP_HOME, '', '', abstract, url]
            output_file.write('{}\n'.format(' DCTB '.join(list_of_data)))
