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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
settingsaver
Frequent Visitor

Get Data from Web From <div title=

Hello,

 

Can you please assist with get data form web for the following information. <div title=? e.g.

Desired text, refer # 1: Electrical installations - Connectable electrical installations and supply arrangements  Part 1: Site supplies for connectable electrical installations, and

Not desired text, refer # 1: Electrical installations - Connectable electrical installati....

 

I unsuccessfully trialled using the CSS selector ".record-title + DIV", each [Attributes][title]” provided by a colleague, that fails apparently as the entry below, refer # 2, does not have a title, that stops all collection for the page.

I speculate that the following may be options, though I have been unable to progress, search: a “child” of a higher row, or provide “fault tolerance”  for the ".record-title + DIV", each [Attributes][title]”.

An example of fault tolerance is return the text: “error/nil etc”, or adjacent text etc.

 

I have limited experience with: CSS selectors, and/or Power Query; though I have unsuccessfully trialled various guesses of random CSS selectors etc, including according to: previous responses on this forum, and general searches of the internet etc.

 

Thanks and regards.

 

Power Query Get Data.png

 

1 ACCEPTED SOLUTION

Hello,  I found the following "error handling" by inserting "?" that relatively resolved my enquiry. Regards.  https://community.fabric.microsoft.com/t5/Power-Query/quot-quot-in-M-syntax/td-p/901748

View solution in original post

3 REPLIES 3
jennratten
Super User
Super User

Hello @settingsaver - It's hard to provide a specific solution without the site you are scraping, but here is an example of text from nested child items. It sounds like you are needing to include some custom logic to evaluate whether or not an element exists as well.  Can you please share the site you are trying to scrape? 

 

jennratten_0-1721571466627.png

 

Hello,

 

Thank you for the assistance.

 

The website follows:

 

Regards.

 

https://www.intertekinform.com/en-au/search/standard/?&sortKey=date-desc&page=8&productFamily=STANDA...

Hello,  I found the following "error handling" by inserting "?" that relatively resolved my enquiry. Regards.  https://community.fabric.microsoft.com/t5/Power-Query/quot-quot-in-M-syntax/td-p/901748

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.