def save_csv(self, file_name=None):

        if not os.path.exists('data'):
            os.makedirs('data')

        if file_name is None:
            file_name = self.csv_file_name

        # coverting data into csv
        _csv_data = 'ID' + CSV_DELIM + CSV_FIELD_NAME + '\n'
        for index, value in enumerate(self.data[CSV_FIELD_NAME]):
            _csv_data += str(index) + CSV_DELIM + value + '\n'

        # saving to the csv file
        full_path = 'data\\' + file_name + '.csv'
        _csv_file = codecs.open(full_path, 'w', 'utf8')
        _csv_file.write(_csv_data)
        _csv_file.close()

        print '[i] rss data saved into "{}"'.format(full_path)
(obj, str) -> None
dataset/ETHPy150Open vdmitriyev/services-to-wordcloud/services/rss/rss_blog_entries.py/RSSParser.save_csv