XML & ElementTree || Python Tutorial || Learn Python Programming

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 2. 06. 2021
  • đ™Žđ™©đ™–đ™ź 𝙞𝙣 đ™©đ™đ™š đ™Ąđ™€đ™€đ™„ 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.com/python Python's ElementTree is the ideal module for working with XML data. It gives you the most commonly used functions and classes in a "Pythonic" way. We will show you how to load, add/edit/delete, and save XML data using the ElementTree.
    We were able to bring you this video thanks to our generous Kickstarter backers! Find their names hidden (okay, not very hidden) in the video!
    ⧓⧓⧓⧓⧓
    Subscribe to Socratica + bell for notifications:
    bit.ly/SocraticaSubscribe
    Find our programming playlists here:
    Python programming: bit.ly/PythonSocratica
    SQL programming: bit.ly/SQL_Socratica
    ⧓⧓⧓⧓⧓
    We recommend:
    How to Be a Great Student
    ebook: amzn.to/2Lh3XSP
    Paperback: amzn.to/3t5jeH3
    Kindle Unlimited: amzn.to/3atr8TJ
    Python Cookbook, 3rd edition
    amzn.to/3goRmbG
    The Mythical Man Month - Essays on Software Engineering & Project Management
    amzn.to/2tYdNeP
    Shop Amazon Used Textbooks - Save up to 90%
    amzn.to/2pllk4B
    ⧓⧓⧓⧓⧓
    Join this channel to get access to perks:
    / @socratica
    Support Socratica on Patreon:
    / socratica
    ⧓⧓⧓⧓⧓
    Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
    Written & Produced by Michael Harrison (@mlh496 on Twitter)
    #Python #Programming #XML

Komentáƙe • 259

  • @Socratica
    @Socratica  Pƙed 2 lety +5

    Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica

  • @kirbymarchbarcena
    @kirbymarchbarcena Pƙed 3 lety +140

    I really miss her simple but amusing lectures. After binge-watching her Python videos, I'm sure I'll earn a lot of...MONEY!!!

  • @GuillermoAlfonsoMorales
    @GuillermoAlfonsoMorales Pƙed 3 lety +151

    She's back. 😍😍😍😍

    • @max477
      @max477 Pƙed 3 lety

      same feeling bro.....!

    • @sam-001
      @sam-001 Pƙed rokem

      ,đŸ€ŸđŸ€Ÿ

  • @bornosoly
    @bornosoly Pƙed 3 lety +151

    It’s been so long nice to have you back.

  • @RB-hj7qc
    @RB-hj7qc Pƙed 3 lety +34

    I have been programming with Python for years, and yet I watch every single Python video. And by the end of each video, I've finished watching that video.

  • @josephcohen734
    @josephcohen734 Pƙed 3 lety +57

    By the end of this video, you will have finished watching it😂😂😂

    • @vikranttyagiRN
      @vikranttyagiRN Pƙed 3 lety

      😂😂😂

    • @skyeplus
      @skyeplus Pƙed 2 lety

      Every 60 seconds a minute passes in Africa.

  • @Talon_24
    @Talon_24 Pƙed 3 lety +15

    "Why did they not call it EML?"
    "There are a lot of letters at the top, but one is missing; YAML must feel neglected"
    "Now it's time to ask yourself: Self, what do I expect to see when this code is run"
    Amazing delivery :D

  • @frauseo
    @frauseo Pƙed 3 lety +18

    For me, she is the best! And all those jokes... just amusing! Love this series

  • @yemen8627
    @yemen8627 Pƙed 3 lety +5

    2 years later........... another amazing video

  • @amoghskulkarni
    @amoghskulkarni Pƙed 3 lety +15

    We have finally switched over to an alternate timeline where she's still publishing Python videos

  • @frothingmonkey1680
    @frothingmonkey1680 Pƙed rokem +6

    I Googled this to send a link to someone else who wanted to know how to work with XML in Python. Rather than trying to explain in detail, I figured it's easier to explain the basics verbally then send them a link. Did not expect to get sucked into the tutorial myself! I absolutely love your presentation style and your humor. You explain the concepts incredibly well and manage to have me genuinely laughing at the same time. Absolutely brilliant! Subscribed. Thanks!

  • @gilililili
    @gilililili Pƙed 3 lety +13

    A wise man once said:
    "ET phone home? No. ET parse data!"

  • @osfu1605
    @osfu1605 Pƙed 3 lety +4

    Socratica it's knowledge
    Socratica it's passion
    Socratica it's love
    THX socratica for coming back

  • @Bojan456
    @Bojan456 Pƙed rokem +1

    This might genuinely be the best Python video I've ever seen. The comedic delivery is genius

  • @timov8871
    @timov8871 Pƙed 3 lety +34

    Your way of teaching is just awesome. I really would love to see more:-)!

  • @momomtjiddu3920
    @momomtjiddu3920 Pƙed 3 lety +3

    she is back now I understand why she once said " go and subscribe to Socratica because you never know when there's something you should but don't know but could know if you had only subscribed "

  • @Cubin4ik
    @Cubin4ik Pƙed 3 lety +10

    Finally! So happy to see you back!

  • @proud22beme
    @proud22beme Pƙed 3 lety +8

    your python stuff is back! i missed it so much~

  • @WindOfCollapse
    @WindOfCollapse Pƙed 3 lety +12

    It's so nice to see you back, hope to see a new vid in less then a few years ;)

  • @marianarlt
    @marianarlt Pƙed 3 lety +3

    Yay! I wondered if we'll ever see new ones of these. I laughed so hard throughout the whole episode, AND learned some things! Superior writing and execution! (no pun intended)

  • @TheHippyHoppyHippo
    @TheHippyHoppyHippo Pƙed 3 lety

    Thank you so much for having the courage to use your time on making more Python programming tutorials, again!

  • @tompov227
    @tompov227 Pƙed 3 lety +9

    I legitimately NEVER noticed it should be EML đŸ€Ż

  • @hancarv4705
    @hancarv4705 Pƙed 2 lety

    I love Ulka! I know she does not write the scripts but she makes them good every single time, props to whomever chose her for this course!

  • @AleOnNet
    @AleOnNet Pƙed 3 lety +2

    She's beautifully back with more useful content!

  • @Socratica
    @Socratica  Pƙed 3 lety +21

    The "hodlers.xml" file used in the video is available in Socratica's GitHub repository: github.com/socratica/python

  • @kamranabdulkhaev1767
    @kamranabdulkhaev1767 Pƙed 3 lety +45

    - Why do they not call it EML?
    me: expecting cool explanation
    - I dont care.
    me: LOL

    • @johanponken
      @johanponken Pƙed 3 lety +1

      It's not an explanation, no. But still cool (as in sensible).

  • @kizzavincent
    @kizzavincent Pƙed 2 lety

    Welcome back! I just never get enough of you! Thanks.

  • @BehruzbekOtayev
    @BehruzbekOtayev Pƙed 3 lety +4

    We, the fans, hereby attest to see more Python tutorials.
    Thank you,
    Everyone.

  • @jacstu-oz1ly
    @jacstu-oz1ly Pƙed rokem

    I find this series to be the best Python programming/scripting tutorials. Thank you

  • @user-dw8qz1qg3x
    @user-dw8qz1qg3x Pƙed 3 lety

    Probably the best tutorial I have found so far

  • @PeterManger
    @PeterManger Pƙed 3 lety +1

    I’m so excited we are back!!!

  • @kltr007
    @kltr007 Pƙed 3 lety

    Patience is rewarded!
    Good job on explaining XML module.

  • @xakkep9000
    @xakkep9000 Pƙed 3 lety +6

    Hooorraaaayyy! I was patient and here my reward!

  • @scotthjackson5651
    @scotthjackson5651 Pƙed 3 lety +1

    Legends! So glad to have you back.

  • @AhmadAlMutawa_abunoor
    @AhmadAlMutawa_abunoor Pƙed 3 lety +2

    Welcome back. We missed you a lot. Please please please keep making more videos like these.

  • @amzabdrahim3350
    @amzabdrahim3350 Pƙed 3 lety +2

    It's been so long , Nice to see you again !, your vidéos are from an other planet! , really really dope python vidéos.

  • @alvarodev4340
    @alvarodev4340 Pƙed 3 lety

    happy to see you back with old style videos!

  • @tvnathreviews
    @tvnathreviews Pƙed 3 lety +3

    I want to comment with a gif, a man crying with words "you areeee backkkkkk"

  • @yv4194
    @yv4194 Pƙed 3 lety

    OMG, she's back!!!!!! Love you!

  • @hexadeci1708
    @hexadeci1708 Pƙed 3 lety

    yay! thought you left us forever, welcome back!

  • @markganus1085
    @markganus1085 Pƙed rokem

    everything worked as expected. i'm chuffed

  • @jajwarehouse1
    @jajwarehouse1 Pƙed 3 lety

    This is a great start to the new series.

  • @bckzilla
    @bckzilla Pƙed 3 lety

    Mmmmm... Amazing... Good thing they are back!

  • @arielspalter7425
    @arielspalter7425 Pƙed 3 lety

    You have a unique style. I love the sarcasm without sacrificing the quality of the explanation.

  • @michaeltellurian825
    @michaeltellurian825 Pƙed 3 lety

    Finally, another python video! Thank you!

  • @pile333
    @pile333 Pƙed 3 lety +1

    Super nice!
    In Italy almost all the invoices are now XML files.
    Good.

  • @UnexpectedMaker
    @UnexpectedMaker Pƙed 3 lety

    Welcome back! I really missed this humour and great content!!!

  • @Reep21
    @Reep21 Pƙed 3 lety +1

    Love these videos! Thank you for the upload.

  • @KennyLiang
    @KennyLiang Pƙed 3 lety

    Thank you for the easy to follow visual guides and the color scheme.

  • @TomsDataWorld
    @TomsDataWorld Pƙed měsĂ­cem

    Please please please keep doing what you are doing and don’t stop doing something you are already doing.
    Love love love these ❀

  • @name1355_0ne
    @name1355_0ne Pƙed 2 lety

    I can't believe Ulka (and her majestic voice) is back on Socratica. Liked an odd number of times)

  • @isabellal1252
    @isabellal1252 Pƙed 3 lety

    These videos are so awesome. For other topics: a simple way to make a standalone executable from your python project.

  • @ihgnmah
    @ihgnmah Pƙed rokem +1

    Hi there,
    I used to dislike your video format, but recently I decided to give it a chance.
    The way you explain everything is so clear that it convinces me to subscribe to your channel.

  • @cocoonkid4321
    @cocoonkid4321 Pƙed 3 lety

    welcome back and much much love 1!

  • @OPTIONALWATCH
    @OPTIONALWATCH Pƙed 3 lety

    I joined today because she's back. I have a course of study online, read books and then I watch her videos to top it off. I think it's a great way to reinforce your knowledge.

    • @Socratica
      @Socratica  Pƙed 3 lety

      We're so happy to have your support!! Thanks for your kind message, Socratica Friend! 💜🩉

  • @Gglsucksbigballz
    @Gglsucksbigballz Pƙed 3 lety

    Glad to see you making vids again!

  • @midnaite
    @midnaite Pƙed 2 lety

    Loving your lessons! Greetintgs from Brazil.

  • @angelmejia5283
    @angelmejia5283 Pƙed 3 lety +1

    Omg, it's been such a long time!

  • @julianredix3925
    @julianredix3925 Pƙed 3 lety +1

    Wow, nice to see you again!

  • @rrahll
    @rrahll Pƙed 3 lety +1

    Wow. She is back!

  • @AlliCsander
    @AlliCsander Pƙed 3 lety

    totally love this!

  • @adryalex08
    @adryalex08 Pƙed 3 lety +4

    I've been waiting so long for this new python series. I thought it wouldn't be. But now I am grateful. Thank you !

  • @jawadmansoor6064
    @jawadmansoor6064 Pƙed 2 lety

    Her new costume is beautiful.
    This is a beautiful opportunity to animate it and make it look like moving, lines or circles. She is such an alien.

  • @murphygreen8484
    @murphygreen8484 Pƙed 3 lety +2

    I've missed these!

  • @Rekindle1976
    @Rekindle1976 Pƙed 3 lety +5

    I don't even need to know XML right now. I'm just here because

  • @Allen-by6ci
    @Allen-by6ci Pƙed 3 lety

    Yes! Missed these Python videos!... More!

  • @jacksonmwangi1668
    @jacksonmwangi1668 Pƙed 3 lety

    She is back..yeah!!

  • @orcu
    @orcu Pƙed 3 lety

    Such a long wait :) thank you!!!

  • @guilhermehx7159
    @guilhermehx7159 Pƙed 3 lety

    Yeeeeah the first advanced lecture

  • @MOTAMINE.
    @MOTAMINE. Pƙed 3 lety +2

    Long long ComeBack..... we want more đŸ„° LOVE

  • @capsteve2371
    @capsteve2371 Pƙed 3 lety

    so much happy to see you back ULKA..

  • @startjourney8631
    @startjourney8631 Pƙed 3 lety

    feels like am learning from another worldđŸ˜ƒđŸ‘ŒđŸ‘Œâ™„ïž

  • @combardus9309
    @combardus9309 Pƙed 3 lety

    I love this instructor shes so cool

  • @lefos99
    @lefos99 Pƙed 3 lety

    She is back! 🙏

  • @latavish
    @latavish Pƙed 3 lety

    yes!! welcome back!!

  • @urmilagundeli731
    @urmilagundeli731 Pƙed 3 lety

    Yay!! Back with another python video😃😃

  • @sdfdsfsdfsd1862
    @sdfdsfsdfsd1862 Pƙed 2 lety

    OMG this is wonderful!

  • @MANOJKUMAR-zs5yg
    @MANOJKUMAR-zs5yg Pƙed 3 lety

    Very happy to see you again.

  • @felipedesousafranca
    @felipedesousafranca Pƙed 3 lety

    Finally! She is the best.

  • @BehruzbekOtayev
    @BehruzbekOtayev Pƙed 3 lety

    So long, Socratica. Keep up the great work👏👏👏👏

  • @freshmaker4o
    @freshmaker4o Pƙed rokem

    "...and by the end of the video...you would have finished watching it" :D made my day :)

  • @Jerry-uc1pn
    @Jerry-uc1pn Pƙed 3 lety

    Thanks for the video. Love your python tutorials

  • @urieltorres7510
    @urieltorres7510 Pƙed 3 lety

    I'm very happy to see you again!!! Very good xml video !!! :D

  • @rohitpatil3534
    @rohitpatil3534 Pƙed 3 lety

    Lets gooooo we back in the game with ulka ❀❀❀❀❀ Socratica is the bessssttttt

  • @bru513
    @bru513 Pƙed 2 lety

    Best and funniest teacher, your jokes are so fun. Love from Brazil!

  • @kn7298
    @kn7298 Pƙed 2 lety +6

    I know it's a bit late, but you can correct the XML layout after adding a new subelement by using the Indent method of ElementTree. This refreshes the automatic indent for the whole tree (or element). You may need to specify "space = ' '" (4 spaces) to override the default setting, to match the default layout for the dump method.
    ET.indent (tree, space = ' ') # for entire tree
    ET.indent (elm, space = ' ', level = 1) # for just the element
    although I did have problems with inconsistent spacing trying to just indent the element!! :O

  • @shishirnair4563
    @shishirnair4563 Pƙed 2 lety

    The presentation of your lectures is out of this world. 😅

  • @Johannes00
    @Johannes00 Pƙed 3 lety +1

    Whoooa, what?! This tutorial series is getting revived??

    • @Socratica
      @Socratica  Pƙed 3 lety +2

      IT IS!! We're back in the studio filming, thanks to the generous support of our Kickstarter backers! 💜🩉 STAY TUNED.

  • @ThePasupathi
    @ThePasupathi Pƙed 3 lety

    Felling happy to see you again...keep going

  • @AlexanderBukh
    @AlexanderBukh Pƙed 3 lety

    so great, as always, thanks!

  • @zackdiarra4805
    @zackdiarra4805 Pƙed 3 lety

    I am just imagining Socratica for Julia programming!!
    One can wish ...!!

  • @rabiumuhammedeffect423
    @rabiumuhammedeffect423 Pƙed 2 lety

    in fact your presentation is outstanding... sooo soo soooo perfect, remarkable and impressive. woooow

  • @bruuryefendy4487
    @bruuryefendy4487 Pƙed 3 lety

    Yay, new video!
    Mouse skills is indeed come in handy...

  • @lukeaspinwall4639
    @lukeaspinwall4639 Pƙed rokem

    That has to be the funniest tutorial I have ever watched on CZcams!

  • @jbrethous
    @jbrethous Pƙed 2 lety

    Brilliant !!!!!!

  • @sagejames3689
    @sagejames3689 Pƙed 2 lety

    lol first time listening to one of your instructional videos. They are awesome. Thank you!

  • @tsalVlog
    @tsalVlog Pƙed 3 lety

    Great work!

  • @tnishachaudhary6231
    @tnishachaudhary6231 Pƙed 3 lety

    nice to see you back đŸ˜»đŸ˜»đŸ˜»

  • @mostafaabbas95
    @mostafaabbas95 Pƙed 3 lety

    She's AWESOME!!!

  • @randomhominid9816
    @randomhominid9816 Pƙed 3 lety

    Excellent content. Very useful to me.