Automatically Fill Word Files with Python

  Рет қаралды 16,607

NeuralNine

NeuralNine

8 ай бұрын

Today we learn how to automate the filling of word files with Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine.com/services
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord

Пікірлер: 31
@samrijijkot
@samrijijkot 8 ай бұрын
Would also be interesting to see a good way to create pdf files with python via latex.
@StYxXx
@StYxXx 7 ай бұрын
I did something like this without extra packaged once in javascript. Just reading the file. You have to make sure the placeholders aren't splitted (which can happen in doc files, there can be tags within a word - you can edit the template though), but besides that it's a pretty forward string replacement. This solutions seems to be way more easier though :)
@MrRichy124
@MrRichy124 8 ай бұрын
I did create something exactly like this with some additional features. I have been using replace instead of runs but sometimes that indeed leads to formatting issues. I used this to create 83 documents at once which is very valueable. Sometimes the date formatting in excel is an issue but that can be solved by converting it to text. With your csv approach that isn't an issue although for a user xlsx shows a better overview. Mine also automatically detects the headers instead of hardcoding them.
@MrMKA2012
@MrMKA2012 8 ай бұрын
do you think this could be way to create program that may help accountant to make his life easier?
@MrRichy124
@MrRichy124 8 ай бұрын
@@MrMKA2012 yes we have been using this at my firm. If you have some word document that needs to be created semiregularly it is worth the time. The word templates need some work put in them, but overall this saved around 26 hours of work. Prospectively more once used more. The tool is universal. I created a column in the excel input with the template names so that it fills several templates from one row iteratively.
@MrMKA2012
@MrMKA2012 8 ай бұрын
Well that is great, now will consider invest time in learning this , Thank you for telling your experience.@@MrRichy124
@EdwardTilley
@EdwardTilley 6 ай бұрын
Great video!
@serychristianrenaud
@serychristianrenaud 8 ай бұрын
Thanks
@saadzahem
@saadzahem 8 ай бұрын
What about filling pdf files? Or automated convertion of docx to pdf.
@vasukansal1834
@vasukansal1834 8 ай бұрын
please explain every line in a more easy way for those people who are using such modules first time
@vishnubalaji9500
@vishnubalaji9500 8 ай бұрын
can you make a video for controlling/automating power bi dashboards
@jvsonyt
@jvsonyt 8 ай бұрын
This is great
@jackbauer322
@jackbauer322 12 сағат бұрын
What if I wanted to fill the file with an LLM generation ?
@muhammedhijazi4080
@muhammedhijazi4080 7 ай бұрын
Which OS is this?
@TheOneHong
@TheOneHong 8 ай бұрын
wasn't auto fill in template is a built-in feature?
@JonesDawg
@JonesDawg 8 ай бұрын
I ve used this at work haha
@Sebwazhere
@Sebwazhere 8 ай бұрын
I broke python by deleting a folder, I reinstalled it and nothing I do works, the folder I deleted was something like mingw/mingw62/lib/python 3.10 and now none of my python installations work and I just get the error: No module named 'encodings' when I try to run python.
@philtoa334
@philtoa334 8 ай бұрын
Thx_.
@paulinepanganiban7938
@paulinepanganiban7938 4 ай бұрын
interesting! thanks for this. new subscriber here! can you create content on creating python script to display computer name, cpuinfo , including users and their associated groups as well as status of services being run in the linux machine? :) Thanks!
@ExcelInstructor
@ExcelInstructor 8 ай бұрын
Hello, Im just trying to start with python, I have question: what is that environment your coding in? Can you go thru code like in VBA when you can execute line by line with f8?
@jwilliams7471
@jwilliams7471 8 ай бұрын
I'll let the author say for certain which editor he is using. However, it looks like JetBrains PyCharm IDE to me. Another highly used IDE is MS Visual Studio Code. Either should work for you.
@iaconst4.0
@iaconst4.0 3 ай бұрын
Ese codigo falla a veces, es muy inestable , no reemplaza muchas veces.
@mrbusiness8648
@mrbusiness8648 3 ай бұрын
Hero
@PANDURANG99
@PANDURANG99 8 ай бұрын
Comments on word file
@Biokompott
@Biokompott 5 ай бұрын
thank you, but I think, word has something built-in for this.
@redcraft612
@redcraft612 8 ай бұрын
First comment and this seems like a good video.
@r00tey545
@r00tey545 5 ай бұрын
Sadly getting the error - in terminal: raise PackageNotFoundError("Package not found at '%s'" % pkg_file) docx.opc.exceptions.PackageNotFoundError: Package not found at 'template1.docx'
@frederikjonssonmadsen6530
@frederikjonssonmadsen6530 4 ай бұрын
I get the same error!
@frederikjonssonmadsen6530
@frederikjonssonmadsen6530 4 ай бұрын
However, I found out that the error appeared because of the fact that the document was open when I ran the code.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 368 М.
Automatically Fill PDF Forms with Python
11:41
NeuralNine
Рет қаралды 8 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 10 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 26 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 22 МЛН
Word File Processing in Python
19:43
NeuralNine
Рет қаралды 61 М.
This INCREDIBLE trick will speed up your data processes.
12:54
Rob Mulla
Рет қаралды 258 М.
Automate Excel With Python - Python Excel Tutorial (OpenPyXL)
38:02
Tech With Tim
Рет қаралды 1,5 МЛН
Start Automating Your Life Using Python! (File Management with Python Tutorial)
13:07
How to Automate Word Documents Using Python
18:36
The PyCoach
Рет қаралды 39 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 369 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 95 М.