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
Mchamarelli
New Member

How to extract hyperlink from webpage - Yellowpages example

Hi!

 

I´m trying to use powerBI to scrape the yellowpages to build a lead database to a client. I can use the examples easily however I´m not able to get to the URL from the site. Here is the URL from the Yellow Pages.

 

Any ideas?

 

https://www.yellowpages.com.au/search/listings?clue=Child+Care+Centres&locationClue=Victoria&pageNum...

1 ACCEPTED SOLUTION
Mchamarelli
New Member

No worries guys! I figured it out by myself!

 

here is the code for future reference:

let
Source = Web.BrowserContents("https://www.yellowpages.com.au/search/listings?clue=Child+Care+Centres&locationClue=Victoria&pageNum..."),
#"Extracted Table From Html" = Html.Table(Source, {{"Name", ".inside-gap-medium.vertical:nth-child(1) > .first-cell > DIV.media-object.clearfix.inside-gap-medium.image-on-right.listing-summary:nth-child(1):nth-last-child(1) > .body > .listing-name"}, {"Website","a[href^=""http""]", each [Attributes][href]}} , [RowSelector=".search-results > DIV.flow-layout.outside-gap-large.inside-gap.inside-gap-large.vertical:nth-child(1):nth-last-child(1) > .in-area-cell"]),
#"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Name", type text}, {"Website", type text}})
in
#"Changed Type"

View solution in original post

1 REPLY 1
Mchamarelli
New Member

No worries guys! I figured it out by myself!

 

here is the code for future reference:

let
Source = Web.BrowserContents("https://www.yellowpages.com.au/search/listings?clue=Child+Care+Centres&locationClue=Victoria&pageNum..."),
#"Extracted Table From Html" = Html.Table(Source, {{"Name", ".inside-gap-medium.vertical:nth-child(1) > .first-cell > DIV.media-object.clearfix.inside-gap-medium.image-on-right.listing-summary:nth-child(1):nth-last-child(1) > .body > .listing-name"}, {"Website","a[href^=""http""]", each [Attributes][href]}} , [RowSelector=".search-results > DIV.flow-layout.outside-gap-large.inside-gap.inside-gap-large.vertical:nth-child(1):nth-last-child(1) > .in-area-cell"]),
#"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Name", type text}, {"Website", type text}})
in
#"Changed Type"

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors