148,657 views
Want to know more about our Complete Python Course? Click the link below to secure your spot in the next class: https://lp.hashtagtreinamentos.com/es... TO DOWNLOAD THE FREE PYTHON MINI COURSE: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- ► Files Used in the Video: https://pages.hashtagtreinamentos.com... ► How to Open and Close Files in Python with the With Structure • How to Open and Close Files in Python... ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/f... ----------------------------------------------------------------------- Hey Awesome! In this class I want to show you how to build a Python freelance project so you can make money! We took this project from the website freelancer.com.br to show you how we can build an XML reader using Python. The idea is that you have a project to make money with Python, since the description says that the budget ranges from R$100 to R$500 and you will notice that it is not very complex to do. To create the XML reader in Python we will have to use the xmltodict library, which will take the XML file and pass it to a dictionary, so we can read the information within Python. I will show you the entire step by step to understand how to obtain the NF information with Python, how to test and how to treat this information if it is not in the same place or does not exist. So, let's learn how to read XML with Python and even make some money with this project? ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click on the bell)! ► Like our video! ----------------------------------------------------------------------- Social Networks ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos on the Hashtag Programação channel we teach several Python tips so that you can develop in this programming language and create your own projects and automations! ----------------------------------------------------------------------- Class Content 00:00 Introduction 01:50 XML Reader 02:50 xmltodict Library (XML to Dictionary) 04:43 Listing XML files 07:15 Opening file in Python (With open) 09:27 Transforming XML into a dictionary 11:47 Going through the information in the dictionary (Json.dumps) 15:12 Necessary information from the note 20:50 Getting the information from the NF 22:36 Getting the information from all NFs + Error correction 31:40 Storing the information in a table 38:36 Final Comments 39:30 Conclusion #python #hashtagprogramacao