No video

Word File Processing in Python

  Рет қаралды 64,555

NeuralNine

NeuralNine

2 жыл бұрын

Today we learn how to create, edit and parse Word (docx) files in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 66
@Saint_Oscar
@Saint_Oscar 2 жыл бұрын
I've literally been looking for something like this for my job. 🙏 Thank you!
@asianpsalmshymns
@asianpsalmshymns 5 ай бұрын
This is the real mission man... Keep it up❤
@iaconst4.0
@iaconst4.0 6 ай бұрын
lo digo en español , asi como te entendi en ingles perfectamente: buen video!! gracias por compartir tus conocimientos!
@ThePianist51
@ThePianist51 Жыл бұрын
Wonderful, mate! You helped me with my legal analysis! 🎉
@embracingchange2191
@embracingchange2191 Жыл бұрын
Thank you so much for this video!!! This has been a massive help. Thanks again.
@tomasgonzalez4819
@tomasgonzalez4819 11 ай бұрын
I will certainly read the docs. Good intro. However, clearly you don't use Word documents all that much, since the ONE thing you didn't touch on was find and replace! Either way, I appreciate bringing this library to our attention.
@jeedub6142
@jeedub6142 10 ай бұрын
The documentation is horrendous… I’ve been tearing my hair out with it all day
@tomasgonzalez4819
@tomasgonzalez4819 10 ай бұрын
@@jeedub6142 I know! 😂🤦‍♂️ It appears the only way find-and-replace is to loop through each run with regex. In other words, nothing to do with the library itself.
@trruthawareness
@trruthawareness 24 күн бұрын
brilliant.
@frankstranathan2352
@frankstranathan2352 Жыл бұрын
Hey I am trying to figure out how to split a word document by paragraphs. I can't figure out how to handle paragraphs that split pages. For example the paragraph starts on page one and ends on page two. No matter how I try to do it it always splits a paragraph that spans pages into two paragraphs.
@TheFlorin1998
@TheFlorin1998 2 жыл бұрын
So this is latex but for word documents. Kinda neat!
@erosserver8142
@erosserver8142 9 ай бұрын
Very good tutorial, but I have a question if we use a {Client} or [Name] or , how can we do this, as financial contracts are much more complex Example: {TermTitle} {Senior} {Currency} {AggPrinAmount} {Collared}{Type} Notes due {MaturityDate format “yyyy”}
@oussmayo
@oussmayo Жыл бұрын
How can i extract text from the footnotes of a word document? Do you have a solution for that been looking everywhere on the internet but cant seem to find working solutions. Thanks in advance!
@tanuj05
@tanuj05 6 ай бұрын
Hi ! Can you please make a video on merging multiple word documents into one combined document ? And the combined document has a table of contents for the merged documents ? TIA
@divyarathnakar4245
@divyarathnakar4245 6 ай бұрын
Great Video, Thank You!. Is there a way update the Header text in the existing word document? Can you please share your ideas on it?
@EdwardTilley
@EdwardTilley 8 ай бұрын
Great introduction to this topic. I wanted to automatically edit an existing CV and your tutorial covered most of this. Do you have another that just edits and updates an existing doc based on text found in the document?
@elbadrey
@elbadrey Жыл бұрын
I enjoy the tut, tell us about find and replace text.
@gustavojuantorena
@gustavojuantorena 2 жыл бұрын
Great! Super useful for automation
@JLSXMK8
@JLSXMK8 2 жыл бұрын
This would especially be AWESOME for custom template generation. @NeuralNine I wonder if there would be something similar to this for PowerPoint slides. If there is, can you also show that to us?
@wtarenta
@wtarenta 5 ай бұрын
Why is the intelisense in my vscode not working? I can't see the tips for functions...
@abzalomkyeuwkyeuw
@abzalomkyeuwkyeuw 3 ай бұрын
How to set column width
@bobvance9519
@bobvance9519 4 ай бұрын
How can I create a hyperlink in the document?
@innocent8484
@innocent8484 Жыл бұрын
Thanks bu ı have a problem :My content starts with tags, how can I transfer them without losing style properties?
@lubnalukman105
@lubnalukman105 7 ай бұрын
Can anyone help me with an assignment..qstn is create a django project and prepare a word doc regarding project and app files ..pls anyone help
@eliotharreau7627
@eliotharreau7627 2 жыл бұрын
Nice work . How can I write in txt format document like Notepad ? Thnx Bro .
@CemYilmaz-zh4ft
@CemYilmaz-zh4ft 3 ай бұрын
Is it possible to get the Text out from a Shape?
@ryanhamilton3609
@ryanhamilton3609 Жыл бұрын
Incredibly useful, thank you very very much !!!!!
@gregphillipsmusic
@gregphillipsmusic Жыл бұрын
Great video, thanks! So, why I am poking around in this topic is to find out how to *modify* text in a Word document. In particular I have got an interview with two people, and I want to have all the interviewer's text to be in italics. Also I don't have a Python environment, I assume this is not too hard to set up. Do you have videos on this? Thanks
@shreyas_._
@shreyas_._ Жыл бұрын
Little exaggerating till "we gonna use an external Library called ...." . But what ever ... Your contents are "PAKKA" 🔥 and the selection of subject
@iqragul136
@iqragul136 Жыл бұрын
File is show error when run from V.S code. Is there any extension that should be downloaded in V.S code?
@JLSXMK8
@JLSXMK8 2 жыл бұрын
Intro song for channel identified - £g0 - "Keep Talkin'" (2020); I gotta warn you all though, the lyrics are extremely explicit!!! But seriously, if there's something similar to the library shown here for use with Microsoft Powerpoint, could you please show that to us? Would be super awesome!
@kapibara2440
@kapibara2440 5 ай бұрын
That was a cool video, thank you!
@ellyeroms-qy1ym
@ellyeroms-qy1ym 7 ай бұрын
theres a new release of python docx. could create a video on that please
@Hex-Scholar
@Hex-Scholar Жыл бұрын
Hey, how can we insert one document file into another document file using Python ?
@Hungryforeverything
@Hungryforeverything 8 ай бұрын
CAN WE COUNT NUMBER PAGES PRESENT IN DOCX FILE IN PYTHON SCRIPT
@Zombitopia
@Zombitopia 2 жыл бұрын
I downloaded python from the main site but I can't find the terminal, what did I do wrong and should I reinstall it? Thank you.
@hartoflearning
@hartoflearning 2 жыл бұрын
If you are on Windows, the terminal is the command prompt. Type in cmd on WIndows 10 to open it. This is where you can do the commands like pip install
@Zombitopia
@Zombitopia 2 жыл бұрын
@@hartoflearning so terminal is CMD? Thank you I thought it's different program.
@hartoflearning
@hartoflearning 2 жыл бұрын
@@Zombitopia Yes. However in a coding software like Visual Studio Code, you can usually do much of the same thing in a window called terminal. Also, if you are just getting started, and you are using Windows, and decide to use something like Visual Studio Code or Pycharm, right click and "Run As Administrator."
@teofilomayol
@teofilomayol Жыл бұрын
Great video!
@dvrchipro7902
@dvrchipro7902 11 ай бұрын
Hi!Can we automate with this workflow?
@dr.fritza959
@dr.fritza959 2 жыл бұрын
Would love to see more codewar videos.
@zubairshaikh8444
@zubairshaikh8444 Жыл бұрын
Can we keep the word file Open while the code runs to see if everything is happening correctly
@sbksdg7019
@sbksdg7019 2 жыл бұрын
Thank you!
@SpartaniXGames
@SpartaniXGames 10 ай бұрын
why are add_heading, add_paragraph, add_run etc. not highlighted in my vs code editor?
@Wanderlust073
@Wanderlust073 8 ай бұрын
Because python-docx is garbage
@petehinch3871
@petehinch3871 2 жыл бұрын
Thanks
@Victor_Marius
@Victor_Marius 2 жыл бұрын
Isn't there a run.text property?
@ammarfasih3866
@ammarfasih3866 Жыл бұрын
how to extract the hyperlinks from the document? any suggestion?
@trruthawareness
@trruthawareness 23 күн бұрын
although i'm quite the beginner, i could suggest for each portion you are going thru, do a match on a regex for a hyperlink. something close to this one? pattern = r'(https?://)' then maybe can do something like match = re.search(pattern, cell) if match: etc.
@kuniverse2200
@kuniverse2200 Жыл бұрын
for anyone wondering: second part starts at 10:11
@LegendsGaming620
@LegendsGaming620 4 ай бұрын
Bro i am not able to make a new file in python
@youknowit1001
@youknowit1001 9 ай бұрын
How to split word document page by page using python? any one have code of this please let me know reply me here Thanks
@philtoa334
@philtoa334 2 жыл бұрын
Thx . : )
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
I use odfpy, which lets you read and write documents conforming to ISO 26300. That’s a *proper* document standard.
@harryneuhoff9115
@harryneuhoff9115 Жыл бұрын
I got error messages. It didn’t recognize pip.
@StefanoVerugi
@StefanoVerugi Жыл бұрын
when installing Python make sure you thick the box about pip, also you need to have python in your path, see environment variables, hope it helps
@user-lt6uu5ud9u
@user-lt6uu5ud9u Жыл бұрын
8:41
@404errorpagenotfound.6
@404errorpagenotfound.6 2 жыл бұрын
Err, why not just use word??
@NeuralNine
@NeuralNine 2 жыл бұрын
Let's say you have 200 word files that have a similar structure and you want to extract the data from all tables for example to create a dataframe from them. Want to do it manually?
@404errorpagenotfound.6
@404errorpagenotfound.6 2 жыл бұрын
@@NeuralNine point taken, also thanks for your work.
@innocent8484
@innocent8484 Жыл бұрын
How can I export the word file? my function is as below def export_file(request): if request.method =="POST": document=Document() duyurular=Duyuru.objects.all() for duyuru in duyurular: print(duyuru.name) document.add_heading(duyuru.name,1) tagsiz_paragraf = BeautifulSoup(duyuru.aciklama, "lxml").text document.save("icerikler.docx") paragraph = document.add_paragraph(tagsiz_paragraf) paragraph.alignment = 3 # for left, 1 for center, 2 right, 3 justify .... return redirect('list_duyuru')
@asianpsalmshymns
@asianpsalmshymns 5 ай бұрын
This is the real mission man... Keep it up❤
@davelag7838
@davelag7838 Жыл бұрын
Thanks for the video, this is incredible useful
Automatically Fill Word Files with Python
14:35
NeuralNine
Рет қаралды 19 М.
Extract PDF Content with Python
13:15
NeuralNine
Рет қаралды 204 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 48 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 147 МЛН
Я не голоден
01:00
К-Media
Рет қаралды 10 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 8 МЛН
Python Tutorial: File Objects - Reading and Writing to Files
24:33
Corey Schafer
Рет қаралды 1,8 МЛН
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 180 М.
Python Импорт данных №6. Импорт таблиц из Word
17:49
Товарищ Excel - Power Query, Power Pivot, Python
Рет қаралды 4,1 М.
Build AWESOME CLIs With Click in Python
25:12
ArjanCodes
Рет қаралды 33 М.
CPU & RAM Usage Monitor in Python
12:06
NeuralNine
Рет қаралды 35 М.
Modern Python logging
21:32
mCoding
Рет қаралды 174 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 293 М.
extract text from microsoft word document using Python
15:57
Applied Data Science
Рет қаралды 27 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 48 МЛН