Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get a part of text from website

Hello,

 

I have some specific web links where I can see howmany of my products are live at the moment on these specific marketplaces.

I would like to select this specific part of the webpage with the Get Data from Web option. But when I do this, it get's a little messy with all HTML codes from that page.

 

However, the result I need is somewhere in all this text, but the question is, how can I select this small part I need from all the text I have?

 

Example of just a small part attached.Example.PNG

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

When you have the get from web navigator open, you should be able to hit the 'Add Table Using Examples' button here:

BA_Pete_0-1635168134256.png

 

Double-click in the first row of the example table and start typing the value from the webpage that you want to get. Power BI should then give you options of similar entries in a dropdown box, and should load the CSS Selector for that value.

BA_Pete_1-1635168286440.png

 

Once you hit OK, it should load you a table with the correct segment of the HTML coded into the M:

BA_Pete_2-1635168408072.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hi @Thomdh ,

 

When you have the get from web navigator open, you should be able to hit the 'Add Table Using Examples' button here:

BA_Pete_0-1635168134256.png

 

Double-click in the first row of the example table and start typing the value from the webpage that you want to get. Power BI should then give you options of similar entries in a dropdown box, and should load the CSS Selector for that value.

BA_Pete_1-1635168286440.png

 

Once you hit OK, it should load you a table with the correct segment of the HTML coded into the M:

BA_Pete_2-1635168408072.png

 

Pete

BA_Pete
Super User
Super User

Hi @Anonymous ,

 

When you have the get from web navigator open, you should be able to hit the 'Add Table Using Examples' button here:

BA_Pete_0-1635168134256.png

 

Double-click in the first row of the example table and start typing the value from the webpage that you want to get. Power BI should then give you options of similar entries in a dropdown box, and should load the CSS Selector for that value.

BA_Pete_1-1635168286440.png

 

Once you hit OK, it should load you a table with the correct segment of the HTML coded into the M:

BA_Pete_2-1635168408072.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Anonymous
Not applicable

Hi Pete,

 

Thanks a lot!

How ever, do you also know how I can get arround the cookie acceptance part?

 

I checked your example, and indeed it works. But it looks like I have to accept cookies first in order to get to the correct page:

Thomdh_0-1635229634686.png

 

Hi @Anonymous ,

 

Try this thread:

https://community.powerbi.com/t5/Power-Query/Bypass-cookies-consent-on-web-scraping/td-p/1460943 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.