Now that we have our 73 records it’s time to pull the actual data from those records. And we need specific code to process each type of data. We’ll start with the event location.
First thing we need to do is search each of our “found” records to find the unique key word that will get us our data. For most of the event locations that key word is “event-place d-block”.
Once that record is found we determine where in the string it begins. This will be our starting point. And knowing how long the key word is we can determine where the event location is in the string.
The next thing we need to do is find where a unique key word can be found that will help us determine where the end of the event location is in the string.
Since we know where the event location begins and where it ends, we can subtract the ending position from the starting position to get the length of the event location. This will be different for each event location.
Sur cette page du site, vous pouvez voir la vidéo en ligne Text Processing Hacking - Part 2 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Darrell Kreckel 19 août 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 13 fois et il a aimé 0 téléspectateurs. Bon visionnage!