Python code to dynamically create Word documents based on 1 template file | how to use 'docxtpl'

Publicado el: 04 marzo 2020
en el canal de: Python 360
19,138
219

#Automation #Python #CSV #DOCX
Automating repetitive tasks is one of my favourite (work) things to do.
Boss: "Hello, we need you to upgrade 100 routers, you'll need to do a change for each one"
Me : Hmmmm (100 word documents, with only 3 or 4 things different in each one). I'll pretend to do them all manually, and then automate the f** out of it.

So this video is here for you all to enjoy, and copy if you like. It's work in progress, let me know how to improve it, I'm thinking I'll add a random time interval between the creation of each file, and also read the source data from a csv with 100 router names and ip addresses in.

use : pip3 install docxtpl and create a template file, where the {{stuff}} stuff in between the braces is your variable. Easier to see from video really.

If you want to do similar but with CSV have a look at this video :    • Auto populate a Word document with da...  

--------------------------------------------------------------------
If you need a good proxy, I can recommend this one 👍👍👍
🌏 https://www.scraperapi.com?fpr=ken49
Coupon Code: DRPI10
-------------------------------------------------------------------

source code = https://github.com/DrPi101/Python/blo...
template = https://github.com/DrPi101/Python/blo...

NEW Version : Python & DOCX :    • Word DOCX From Template | Python  

#word #python #docx #automation

Check out the Minimalist online python IDE :
https://epyco.herokuapp.com/
https://epico.herokuapp.com/

Buy Dr Pi a Coffee...or Tea! : https://www.buymeacoffee.com/DrPi


En esta página del sitio puede ver el video en línea Python code to dynamically create Word documents based on 1 template file | how to use 'docxtpl' de Duración hora minuto segunda en buena calidad , que subió el usuario Python 360 04 marzo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 19,138 veces y le gustó 219 a los espectadores. Disfruta viendo!