Convertthatoutto a stringsowecanactually, like, useithowwewouldliketo, uhandthenfromthereAtleastinourcase, wewe'vegotquite a bitofparsingandformattingthatweneedtobeabletodofromthere.
We'regonnauseNetHttponthenwealsoneedtousetheIOUtill, sothat's gonnabe a Iot.
Solash, I oweyoutill.
So, umnowwhat?
We'regonnagoaheadandDioisfirst, we'regonnamake a request.
Sotherequestisgonnareturntwothings.
Basically, it's gonnabe a response, andthenit's gonnabeanerrorifyou'regoingifyougetanerrorsoitmightbeempty.
Butfornow, we'regonnausetheunderscore.
Soyou'rejustgonnausetheunderscoreanytime?
Don't forget, Colonequalsanyway, you'regonnauseunderscoreanytimeyoudefine a variablethatyoudon't intendtouseifyoudon't usetheunderscorebasicallyjustsays, Okay, thisisjustthrowaway.
Somethingneedstobeunpackedtothis, but I don't plantouseitbecauseingo, ifyoudefine a variableandthenyoudon't useit, you'regonnagetanerror.
Whenwhenyourunthisscriptanyway, httpdotgetcapital G again.
Exported.
Uh, we'regonnareadinthelink.
I'm justgonnacopyandpasteit, but, uh, see, they'resoyeah, it's justwashingtonpostdotcomslashnewsdashsitemattdashindexdotxmlUm, justfortherecord, it's a sitemapthatcontainslinkstoeallthecategorizesitemapslikepoliticsandopinionsandthen, like, techandlocalandsports.
Allthatstuff.
Um, soyeah, definitelynot.
NoshadowsspecificallytotheWashingtonPost.
Actually, don't reallyreadWashingtonPost.
I justlikeitbecauseit's got a slightmapthatleadstoyetanothersitemap, anditposesaninterestingtaskforus.
Therequite a fewwebsites, butthisisjustonethat I'm gonnausehere.
Soanyways, um, andalsojustincase, especiallyforthefuturetutorials, um, thismightchange, likelikehistorically, when I'vedonetutorialsusinganyotherwebsitenotjustforparsing, butforanythinglike a P I oranything.