#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 10 16:58:34 2021 @author: jacopo """ ''' create link files ''' from docx import Document d = '/home/jacopo/Documenti/scuola/università/TSE/PhD/my_projects/demandAdvice/ExperimentDemandAdvice_splitT_FR/lab_computer_links/' num_computers = 20 for i in range(num_computers): document = Document() document.add_paragraph('https://demandadvice.herokuapp.com/room/DemandAdvicePart1?participant_label=Computer{}'.format(i)) document.add_paragraph('https://demandadvice.herokuapp.com/room/DemandAdvicePart2?participant_label=Computer{}'.format(i)) document.save(d + 'Computer{}.docx'.format(i))