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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Web scraping error

Hello guys,

 

How to deal with this error:

 

image.png

Function:

 

= (data as text) as table=>

let
Source = Web.BrowserContents("https://krisha.kz/prodazha/kvartiry/almaty/?das[flat.priv_dorm]=2&das[house.floor_num][from]=4&das[house.year][from]=1970&das[live.rooms][]=1&das[live.rooms][]=2&das[live.square][to]=70&das[price][from]=5000000&das[price][to]=10000000&page="&data),

#"Extracted Table From Html"= Html.Table(Source, {{"Column1", ".a-card__title"}, {
"Link", 
"a[href^=""/a/show/""]", 
each [Attributes][href]}}, [RowSelector=".a-card__title"])
in
#"Extracted Table From Html"

 

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

I test your function with a single parameter and it works well.
I guess you are invoking this function in another table who contains large amount of records and tries to loop through each row based on its field value as a parameter from that table, right?

If this is a case, I'd like to suggest modify your function to get these pages in one request instead send invoke function multiple times. (It will spend a lot of time to send the request and receive each record)
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.