python-openxml / python-docx

Create and modify Word documents with Python
MIT License
4.5k stars 1.11k forks source link

Youtube tutorials for Python-Docx #1426

Open Leonas2000 opened 2 weeks ago

Leonas2000 commented 2 weeks ago

Hi everyone,

I'm currently working on a series of YouTube tutorials focused on the python-docx library, and I would greatly appreciate your feedback. Specifically, I'm looking for:

  1. Content Suggestions: Topics or features within python-docx that you think should be covered in these tutorials.
  2. Expert Insights: If anyone with a comprehensive understanding of the python-docx library could provide some guidance, it would be incredibly valuable. I have a few questions to ensure that the tutorials are as accurate and informative as possible.

Thank you in advance for your time and assistance. I'm excited to create content that will be helpful to both beginners and experienced users alike!

Currently I have:

  1. What A word document XML looks like
  2. A simple script to search and replace contents in header, tables and main body text https://www.youtube.com/playlist?list=PLerUGA6rhFrIg8TGPo_QAjHSNLEjb3RqO
scanny commented 2 weeks ago

Hi Jonas, I think this is a great idea :)

Happy to advise on any questions. Feel free to email me directly at the email address on my GitHub profile. If it's a question you think others will benefit from the answer to you can post it on StackOverflow and direct my attention to it.

Much of the support over the years has happened on SO so that probably has the broadest Q&A. Look for the python-docx tag. This view shows them sorted by votes and views: https://stackoverflow.com/questions/tagged/python-docx?sort=MostVotes&edited=true

That could also give you an idea of what issues folks encounter most when learning.

I love the "what's inside" topic. I think that's a great way for folks to gain insight into how it works but also, very importantly, inspecting the XML is a key step is diagnosis or working out how to add an extension of some type to suit a specialized use-case. So it's building a key skill they may very well want as they get further along.

opc-diag is worth looking at for that too, because it gives a convenient CLI for exploring and automatically reformats the XML to be readable. I developed it because I got tired of doing all that by hand :) You'll need to install that off the develop branch on GitHub at the moment (Python 3 compatibility), but I'll be pushing a new release soon so we could have that out before you publish, just let me know. https://github.com/python-openxml/opc-diag https://opc-diag.readthedocs.io/en/latest/