Take your skills one step further with The Complete Python Programming Bootcamp! www.thecodex.me/python-bootcamp Join THECODEX today! www.thecodex.me
@Sarikni_ukasi3 жыл бұрын
That’s exactly what I was looking for today. God willing
@Galvis184 жыл бұрын
Hi, where's the rest of these tutorials about writing with Docx, can't find them!... Thanks!
@bmansan Жыл бұрын
Awesome. Just the explanation about "runs" already made me understand the documentation. Thanks a lot 🎉
@undefined365 жыл бұрын
Hello Avi, Good video :) Is it possible to copy the content(like copying 4.1 section which has table and few lines) from doc file and paste in other file. please help me.
@SandanuwanDhanushka3 жыл бұрын
Good job! Subscribed! Would like to see more unique content like this. Thanks!
@shivanshjayara63723 жыл бұрын
@5:06 why at index 1 runs do not consider python programming together? Though it is having same size and format?
@santiagocollados89863 жыл бұрын
oh my gosh! So simple!!! Awesome! Heap of thanks!
@Srikanth-Ryali3 жыл бұрын
HI, Thx lot ..Any idea on how to extract page no from word document using python
@limodog7792 жыл бұрын
hi there, when i do pip3 install, it doesnt work and gives me the message"pip3 : The term 'pip3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pip3 install python-docx + ~~~~ + CategoryInfo : ObjectNotFound: (pip3:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException" i would appreciate help!
@malikrumi12064 жыл бұрын
2020-11-11. Video does not start. Might be connected to an issue with the ad that runs before it. That ad does not run, either. I just get the last frame where it says 'click here'. Skip ad just gets the white circle going round and round on the black screen.
@elpp29372 жыл бұрын
Is it possible to combine and compare more than ten documents and then merge them into one with amendments being marked in revision mode? Thank you.
@gurnihalsingh57525 жыл бұрын
Do you know how to get the program to read numbering , bullet points etc. ?
@ManuelSoutoPico3 жыл бұрын
Very nice! How would you extract highlighted text from a Word document?
@shivakumarag32268 ай бұрын
How can i find and change the certain text font size from existing paragraph by using python-docx?? Any help would be great save for me.
@abdullahihsan13874 жыл бұрын
great tutorial but i just have one question. how do you change the font and font size?
@johnsmith-tc5um7 жыл бұрын
high level of positivity over here, very useful guide thanks!
@anthonyudeagbala85584 жыл бұрын
Hi, thanks for making this tutorial. I for one is facing the challenge of adding an image side by side. That is not adding an image in a new paragraph. How can I do this?
@alexgora75302 жыл бұрын
Cool 👍 thank you friend ❣️
@witekgreg7 жыл бұрын
Hi Avi, thanks for great course! Could you please continue with python-docx serie? Do you know how can I split table in word? I would like to use something like VBA "selection.SplitTable", but I cannot find anything similar to break one big table to smaller ones
@ollehawes30595 жыл бұрын
Is it possible to change the data in a table to the contents of a .txt file with Python-docx?
@JR-ly6bx3 жыл бұрын
whats the benefit of using python-docx vs accessing the VBA object model with pywin32????
@abhilashdas25884 жыл бұрын
You are a good orator....Fantastic really....!
@vrkv3804 жыл бұрын
I have an existing docx file(A.docx) and want to do the following 1) copy the custom styles from another docx file(B.docx) to (A.docx) file 2) want to update the paragraph of the existing docx file(A.docx) with custom styles that i added in STEP-1 How we can achieve this ?
@jensknaack90163 жыл бұрын
Very good tutorial. Thank you.
@TheCbrown1464 жыл бұрын
I'm sorry. I am a bit dense. How is this useful? I can write in word document. I just need some ideas on why I would spend time coding this instead of writing this out on word document.
@burdbrains10194 жыл бұрын
An example would be automating a task, like something that requires you to write a lot of information from an excel file to a word document. If you can program an application that lets you just upload an excel file and write to a word document (as opposed to having to do it all by hand), although initially it may take some time to program, that would save you a lot of time in the long run. Of course this would only be useful if you had to do said task hundreds of times.
@ashishkumawat61104 жыл бұрын
Awesome tutorial dude! keep it up
@AsadKhan-cw6ue4 жыл бұрын
how can we add water mark to our documents by this module ?
@kcvinu4 жыл бұрын
Thanks for the video. What about tables in word ? Could you please make a video on how to read from word table and write to word table ?
@mrkeinzi2 жыл бұрын
Is it possible to update the table of content ?
@mustarifinmuhtar10253 жыл бұрын
i have one '.docx', and i want to add a new page on the first page of the document as cover how to do this? please help me
@iklintsov5 жыл бұрын
nice library, I was wondering if there is a way to get a list of custom fields from docx, so that later I can populate it with some data...
@pavankumark47083 жыл бұрын
How to set the position of the image in the docx file ?
@vinayraoj944 жыл бұрын
i want to add multiple images to a doc file from a folder. one image per page . How can I do it?
@blakeyhatcher7 жыл бұрын
Sorry for asking so many questions but I was wondering if there was a way to read a full page all at once from a document and store a page as an element to an array or something so like if I had a word document with 100 pages could I store each page in one array?
@AndyWicks5 жыл бұрын
Simple to understand, well presented and easy to use - thank you and well done. :-)
@JimmyGeniusEllis3 жыл бұрын
Great thanks man
@thavasigti42902 жыл бұрын
.docm file does not support this package, any suggestion
@feRy35375 жыл бұрын
Very useful intro to docx module, thank you!
@Emlop15 жыл бұрын
Fantastic !
@PankajKumarShee5 жыл бұрын
Unable to install docx in my macbook. any help will be appreciated.
@artificial-alex011014 жыл бұрын
Use the Pycharm GUI. Open a project, go to File > Settings > Project: > Project interpreter. Then use the "+" button to add any package you need.
@j-oy62186 жыл бұрын
Has he posted the next video of it? As he said he is going to show how to work with styles and headings. Please reply me with a link if anyone knows.
@ayushthapamangar8012 жыл бұрын
the vid starts from5:50
@CSAMAROK3 жыл бұрын
how can i use input("") inside doc.add_pragraph()?
@joaofolgado33164 жыл бұрын
hey ! how can i replace a specific word in a text file ? can you help me ? thanks
@harshanamiyuranga34913 жыл бұрын
cant we read paragraph in text box with python-dcx ??
@muhammedbayram46242 жыл бұрын
Thanks dude
@otrolokodemas5 жыл бұрын
print variable in the document? help me
@Runawaygeekchannel6 жыл бұрын
Oddly, one of the most vital processes for DOCX is understanding the document structure, (Paragraphs, Tables and images) and the order. That order needs to be understood so that when we extract the text and build a new file, such as parsing through a translator, we can rebuild in the same order. its the Document.Story but i can't find anywhere on how to get this detailed out.
@infreezydark5 жыл бұрын
why does docx not show any methods on pycharm? when I do doc. I only get if, while etc.. I don't add_paragraphs etc
@cgthejesh5 жыл бұрын
Even I had same question, but in his tutorial it gives out the list of methods Strange. I use pycharm editor
@frikkievandermerwe5 жыл бұрын
Wow! Awesome tutorial!
@siddarthbali124 жыл бұрын
It doesn't work for .doc format, what's the work around for .doc format????
@ronit80677 жыл бұрын
Hi, I am able to write text to a .txt file just fine. I am extracting values from a excel file and adding them to a huge string which is a message(output to my txt). values from excel (using data frame) are iterated. is there any way to output this data to a docx file.
@pradeep-he9jq6 жыл бұрын
how can we read .doc files? can we do that with pydocx?
@Leela_Karthik3 жыл бұрын
how to add list bullet to an existing document which doesn't have that style
@arunkumars54284 жыл бұрын
How to add caption for the figure?
@luizeduardo57865 жыл бұрын
Hello! If have 6 lines and i want to isert a image between line 2 and 3. It's possible ? Thanks!
@johnmichaeltejada15784 жыл бұрын
It didn't work. After I installed the python-docx, ModuleNotFoundError: No module named 'docx', every time I run the program.
@danielkessie99214 жыл бұрын
probably problem with your environment or interpreter. always check where you pip install it, if you have more than one version of python in your pc.
@alexanderlewzey11026 жыл бұрын
Really excellent video, great pace, clear explanation, super useful!
@DA-dh5vf5 жыл бұрын
Can you please make a video you on reading data from XML and writing to a table in word document ?
@achyutkayastha42484 жыл бұрын
FileNotFoundError: [Errno 2] No such file or directory: 'bear.jpg'. why is it not working. I have put the picture in the python files directory. Where else am I supposed to put it.? someone help!
@linguini86584 жыл бұрын
you probably dont have the picture named "bear.jpg"
@AbdulWaheed-ib4nm3 жыл бұрын
Challenge which I face using python-docx package are: 1) not able to add " table of content ' inside word file. 2) cross reference not working 3)hyperlinks not working Do you know how i can add table of content ?
@yalairfan72525 жыл бұрын
Can I get bold and italic font present in pdf (Which consist images) or image please help.. using any ocr or lib
@danilolobo11673 жыл бұрын
how can I do it on google Colaboratory?
@iopltt5 жыл бұрын
Fantastic! :-)
@creepersbgone6 жыл бұрын
My program doesnt find hyperlinks in the docx file, any input on this?
@narendrapatidar4 жыл бұрын
how to remove black space in doc with pthon, It is empty line (paragraph)
@Semilore3172 жыл бұрын
How exactly do you save a file
@RameshPatil-mr6rl5 жыл бұрын
How to copy the content of one docx to another with all the formatting
@afaqurrehmankhan31334 жыл бұрын
I need help in python , where should I contact you?
@programminghubph7444 жыл бұрын
How can I automagically enter a data in a cell in docx?
@gaganmittal73326 жыл бұрын
is there any method to convert the unstructured text file to excel??
@sonamtseringsherpa4 жыл бұрын
this was simply great and very intresting
@amramilic76807 жыл бұрын
Will this course be available at Udemy and will there be certificate for it as well? I got your "Introduction to Python programming" certificate and the course really helped me a lot to understand Python fundamentals better. Keep up!
@globalassistance10506 жыл бұрын
Is there anyway we can copy the content from one .docx file to another and keep the formatting same..thank you
@j-oy62186 жыл бұрын
did u find the way? coz I also want to try this.
@antitroll986 жыл бұрын
is that even a question? just move with shutil
@myos21884 жыл бұрын
how could I work with tables on a Word file?
@josereynelchauxperez9477 жыл бұрын
Excelente material, muchas gracias !!!
@ekremberkmen6 жыл бұрын
Thanks for the great tutorial. Could you explain how to change the fonts of a run? Or making a run bold or italic
@vipink36704 жыл бұрын
p.add_run('bold').bold = True p.add_run(' and some ') p.add_run('italic.').italic = True
@blakeyhatcher7 жыл бұрын
What text editor is that that you are writing your code on?
@TheCodex7 жыл бұрын
PyCharm! There's a free to download community version online.
@blakeyhatcher7 жыл бұрын
The Codex awesome thanks
@kmp9224 жыл бұрын
@@TheCodex I want to join docx rest of the video's . Please help me
@adityasher4 жыл бұрын
how can I repalce text?
@Hunterrrr114 жыл бұрын
I need to know, too. someone pls help
@pushkaringale57005 жыл бұрын
how to extract image from .docx using python
@4ZaKing5 жыл бұрын
Really nice. Maybe even "Fantastic!" =) Seems like it is "python-docx" when installing also in python 2 now by the way.
@theojudson13893 жыл бұрын
i dont mean to be off topic but does anybody know a way to get back into an Instagram account?? I was stupid forgot my account password. I love any tricks you can give me!
@mathiastravis6033 жыл бұрын
@Theo Judson instablaster ;)
@theojudson13893 жыл бұрын
@Mathias Travis I really appreciate your reply. I got to the site thru google and Im waiting for the hacking stuff now. Seems to take quite some time so I will get back to you later when my account password hopefully is recovered.
@theojudson13893 жыл бұрын
@Mathias Travis it worked and I finally got access to my account again. I'm so happy:D Thanks so much you saved my account :D
@mathiastravis6033 жыл бұрын
@Theo Judson no problem xD
@luizeduardo57865 жыл бұрын
How Can i save using use the name that is in a variable? For example: A = Luiz document.save('A.docx') -> this can't work! Can you help me ?
@GeorgePatoulis5 жыл бұрын
if you're using python 3, write it as: document.save('{}.docx'.format(A)) if you're using python 2, it's something with "%"... (I don't quite remember, 'cause I'm new to python, but you can look it up.) Generally, when you want to use a variable name inside a string, that's the way to do it! '{}'.format(variable)
@alexey_starshin7 жыл бұрын
Very usefull, thank you.
@alejandrobeltran68897 жыл бұрын
thank you very much for the information, it is very good.
@sonorityscape6 жыл бұрын
How could I access a text box?
@Dimanatos4 жыл бұрын
NO ME FUNCIONA, ME TIRA ERROR CONSTANTEMENTE CUANDO QUIERO HACER EL DOC = DOCX.DOCUMENT(MIARCHIVO.DOCX) AYUDAAAAAAAAAAAAAAAAAAAA
@yoshimidilg48187 жыл бұрын
did they come up with different functions since this was posted? doc.paragraph does not work for me
@TheCodex7 жыл бұрын
Hmmm that's really odd - doc.paragraph should definitely work.
there is an add_paragraph() method. Try using that on your docx object
@FullPiter4 жыл бұрын
Could U make more advanced stuff with docx python? I found it actually very useful, and well the basic are very easy and greatyl presented on website of pythondocx but stuff like headings, footers are way harder to understand.
@shivamsri67843 жыл бұрын
Dude please tell how to fetch all the data from doc file in one single code
@RaulEduardoFloresNajera5 жыл бұрын
Excellent
@udhaykumar48774 жыл бұрын
Anyone suggest how to convert HTML page with styles into word document in Django views
@runthomas6 жыл бұрын
how to display the entire docuemnt
@clintluna68845 жыл бұрын
Here's code I made to read an entire text document automatically, let me know if you have any questions: def docPrinter(): import docx import os print("This prints text from a docx document") fname=input("Enter the name of the file: ") #must include .docx in the name doc=docx.Document(fname) i=len(doc.paragraphs) for c in range(i): print(doc.paragraphs[c].text) docPrinter()
@mahdiamrollahi84564 жыл бұрын
Great....
@britoroque4 жыл бұрын
Thanks for this video. It's awesome. By the way, do you know how to do the same with odt files?
@blo0m19854 жыл бұрын
useless as it's not possible edit doc inside, only add to the end of existing file
@rahasworld4 жыл бұрын
Why would one want to modify a word document using Python? Why not do it the old fashioned way? I ask in all seriousness
@mahmoudhegazy15304 жыл бұрын
super
@CommitSNIPS7 жыл бұрын
Can you please do a tutorial on a cocoa app!
@hazoomeh6 жыл бұрын
I can do all of this (and much more) in Word itself.. What is the point of using Python here? It’s a very basic question that you didn’t answer.
@blacklilith66966 жыл бұрын
Maybe when you are working on some automated stuffs you may appreciate this.
@burdbrains10194 жыл бұрын
As said above ^ an example would be automating a task, like something that requires you to write a lot of information from an excel file to a word document. If you can program an application that lets you just upload an excel file and write to a word document (as opposed to having to do it all by hand), although initially it may take some time to program, that would save you a lot of time in the long run. Of course this would only be useful if you had to do said task hundreds of times.