Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
Solved! Go to 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
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?
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
Hello,
Thank you for the assistance.
The website follows:
Regards.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
31 | |
29 | |
19 | |
15 | |
12 |
User | Count |
---|---|
20 | |
18 | |
13 | |
10 | |
10 |