@@ -165,18 +165,18 @@ print(div_firsth3.prettify())
165165
166166Remember, the output shown here is probably different than yours, as the website is continuously updated.
167167``` output
168- <div class="p-8 mb-5 border" data-country="United States " data-curriculum="Library Carpentry (Intro to Data, Unix Shell, Git, and/or OpenRefine )" data-meeting="In Person" data-program="Library Carpentry">
168+ <div class="p-8 mb-5 border" data-country="Puerto Rico " data-curriculum="Software Carpentry (Shell, Git, R for Reproducible Scientific Analysis )" data-meeting="In Person" data-program="Software Carpentry">
169169 <div class="flex mb-4 -mx-2">
170170 <div class="flex items-center mx-2">
171- <img alt="" class="mx-1" src="/library .svg"/>
171+ <img alt="" class="mx-1" src="/software .svg"/>
172172 <span class="text-[0.625rem] uppercase">
173- Library Carpentry
173+ Software Carpentry
174174 </span>
175175 </div>
176176 <div class="flex items-center mx-2">
177- <img alt="" class="mr-1" height="20" src="/flags/us .png" width="20"/>
177+ <img alt="" class="mr-1" height="20" src="/flags/pr .png" width="20"/>
178178 <span class="text-[0.625rem] uppercase">
179- United States
179+ Puerto Rico
180180 </span>
181181 </div>
182182 <div class="flex items-center mx-2">
@@ -187,20 +187,20 @@ Remember, the output shown here is probably different than yours, as the website
187187 </div>
188188 </div>
189189 <h3 class="title text-base md:text-[1.75rem] leading-[2.125rem] font-semibold">
190- <a class="underline hover:text-blue-hover text-gray-dark" href="https://unt-carpentries .github.io/2026-01-22-unt /">
191- University of North Texas
190+ <a class="underline hover:text-blue-hover text-gray-dark" href="https://dept-ccom-uprrp .github.io/2025-06-04-uprrp-r /">
191+ University of Puerto Rico
192192 </a>
193193 </h3>
194194 <div class="mb-5 text-lg font-semibold text-gray-mid">
195- Library Carpentry (Intro to Data, Unix Shell, Git, and/or OpenRefine )
195+ Software Carpentry (Shell, Git, R for Reproducible Scientific Analysis )
196196 </div>
197197 <div class="mb-2 text-xs">
198198 <strong class="font-bold">
199199 Instructors
200200 </strong>
201201 :
202202 <span class="instructors">
203- Sarah Lynn Fisher, Maristella Feustle, Whitney Johnson-Freeman
203+ Humberto Ortiz-Zuazaga, Airined Montes Mercado
204204 </span>
205205 </div>
206206 <div class="mb-4 text-xs">
@@ -209,11 +209,11 @@ Remember, the output shown here is probably different than yours, as the website
209209 </strong>
210210 :
211211 <span class="helpers">
212- Marcia McIntosh, Trey Clark
212+ Isabel Rivera, Diana Buitrago Escobar, Yabdiel Ramos Valerio
213213 </span>
214214 </div>
215215 <div class="text-sm font-semibold text-gray-mid">
216- Jan 22 - Jan 22 2026
216+ Jun 04 - Jun 10 2025
217217 </div>
218218</div>
219219```
@@ -230,7 +230,7 @@ As shown in the previous episode, we can store all this information in a Python
230230# Create an empty dictionary and fill it with the info we are interested in
231231dict_workshop = {}
232232dict_workshop[' host' ] = div_firsth3.find(' h3' ).get_text()
233- dict_workshop[' link' ] = div_firsth3.find(' a' ).get(' href' )
233+ dict_workshop[' link' ] = div_firsth3.find(' h3 ' ).find( ' a' ).get(' href' )
234234dict_workshop[' curriculum' ] = div_firsth3.get(' data-curriculum' )
235235dict_workshop[' country' ] = div_firsth3.get(' data-country' )
236236dict_workshop[' format' ] = div_firsth3.get(' data-meeting' )
@@ -252,7 +252,7 @@ workshop_list = []
252252for item in divs:
253253 dict_workshop = {}
254254 dict_workshop[' host' ] = item.find(' h3' ).get_text()
255- dict_workshop[' link' ] = item.find(' a' ).get(' href' ) # get is used to access attribute values as a dictionary
255+ dict_workshop[' link' ] = item.find(' h3 ' ).find( ' a' ).get(' href' ) # get is used to access attribute values as a dictionary
256256 dict_workshop[' curriculum' ] = item.get(' data-curriculum' )
257257 dict_workshop[' country' ] = item.get(' data-country' )
258258 dict_workshop[' format' ] = item.get(' data-meeting' )
@@ -283,7 +283,7 @@ workshop_list = []
283283while child_div is not None :
284284 dict_workshop = {}
285285 dict_workshop[' host' ] = child_div.find(' h3' ).get_text()
286- dict_workshop[' link' ] = child_div.find(' a' ).get(' href' )
286+ dict_workshop[' link' ] = child_div.find(' h3 ' ).find( ' a' ).get(' href' )
287287 dict_workshop[' curriculum' ] = child_div.get(' data-curriculum' )
288288 dict_workshop[' country' ] = child_div.get(' data-country' )
289289 dict_workshop[' format' ] = child_div.get(' data-meeting' )
@@ -325,7 +325,7 @@ workshop_list = []
325325for item in divs_past:
326326 dict_workshop = {}
327327 dict_workshop[' host' ] = item.find(' h3' ).get_text()
328- dict_workshop[' link' ] = item.find(' a' ).get(' href' )
328+ dict_workshop[' link' ] = item.find(' h3 ' ).find( ' a' ).get(' href' )
329329 dict_workshop[' curriculum' ] = item.get(' data-curriculum' )
330330 dict_workshop[' country' ] = item.get(' data-country' )
331331 dict_workshop[' format' ] = item.get(' data-meeting' )
@@ -362,7 +362,7 @@ We only need to add three lines to our loop, and this is how it would look like.
362362for item in divs:
363363 dict_workshop = {}
364364 dict_workshop[' host' ] = item.find(' h3' ).get_text()
365- dict_workshop[' link' ] = item.find(' a' )[' href' ]
365+ dict_workshop[' link' ] = item.find(' h3 ' ).find( ' a' )[' href' ]
366366 dict_workshop[' curriculum' ] = item.get(' data-curriculum' )
367367 dict_workshop[' country' ] = item.get(' data-country' )
368368 dict_workshop[' format' ] = item.get(' data-meeting' )
0 commit comments