Driving Question:
I have a server log file that I would like to analyze and draw some insights from. How can I extract this data using python?
In today’s tutorial, we will tackle another task that could be a little challenging depending on the nature of your file. Fortunately, if your data lends itself to some consistent structure, there are tools to help with nicely with it. Some familiarity with Python string formatting may be helpful to understand this.
What we’ll cover today:
0:00 Introduction
2:43 Read in the text file
3:32 Parse data with Python parse package
12:37 Parse all data using the map function
Additional References:
This tutorial assumes a basic understanding of Python strings. Also, some basic understanding of reading and writing files will be sufficient.
Previous lesson: • #9 Basic Python Data Extraction from ...
Source Code
Visit the following GitHub repository to follow along with the code used in this tutorial
https://github.com/quizem/data-skills...
Sur cette page du site, vous pouvez voir la vidéo en ligne #10 Python Data Extraction using Server Log Files durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Data Skills for Everyone 20 novembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 6,374 fois et il a aimé 90 téléspectateurs. Bon visionnage!