Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Parsing Data

Simon1187
9 - Comet

Hi there, 

 

I am trying to parse the data. Could you please help me with that? 

 

Like below: 

 

prof=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[0]
profile_views=prof.text

web=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[1]
website_views=web.text

phone=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[2]
phone_calls=phone.text

direction=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[3]
direction_requests=direction.text

bot=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[4]
button_clicks=bot.text


search=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[5]
direct_searches=search.text

discover=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[6]

 

 

Thanks 

2 REPLIES 2
dougperez
12 - Quasar

What is the tag that you want to parse? 

In my example, I parsed the class tag:

prof=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[0]
profile_views=prof.text

web=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[1]
website_views=web.text

phone=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[2]
phone_calls=phone.text

direction=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[3]
direction_requests=direction.text

bot=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[4]
button_clicks=bot.text


search=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[5]
direct_searches=search.text

discover=soup.findAll('span', attrs={'class':'Typography__StyledText-sc-1t7fs6h-0 gcUuHL'})[6]

 

Simon1187
9 - Comet

Hi @dougperez,

 

Thanks. I am trying to parse the file that I have attached. Could you please check that? 

 

I want to find the highlights on the screenshot. 

 

Simon1187_0-1637143898396.png

 

 

 

Thanks, 

Labels