scripts/get_stargazers.py
def write_to_file(self, file_path='', date=(datetime.date.today()),
        organization='llnl'):
        """
        Writes stargazers data to file.
        """
        with open(file_path, 'w+') as out:
            out.write('date,organization,stargazers\n')
            sorted_stargazers = sorted(self.stargazers)#sort based on lowercase
            for star in sorted_stargazers:
                out.write(star + ',' + str(self.stargazers[star]) + '\n')
        out.close()
def write_to_file(self, file_path='', date=(datetime.date.today()),
        organization='llnl'):
        """
        Writes stargazers data to file.
        """
        with open(file_path, 'w+') as out:
            out.write('date,organization,stargazers\n')
            sorted_stargazers = sorted(self.stargazers)#sort based on lowercase
            for star in sorted_stargazers:
                out.write(star + ',' + str(self.stargazers[star]) + '\n')
        out.close()
Writes stargazers data to file.