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

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

Reply
Ju743878
Regular Visitor

power BI web content loop with refresh in service

Hi, Im stuck with a m ulti value web content call, I have try to follow the tutorial here : https://www.thebiccountant.com/2018/03/22/web-scraping-2-scrape-multiple-pages-power-bi-power-query/...

but with all my try, the table result is not dynamic from the context, here is my old version of the table, with query URL modify but the loop doesnt apply in the call.

let
Source = Web.Contents("https://www.chrono24.fr/audemarspiguet/index-1.htm?pageSize=30",
[Query = "www.chrono24.fr/audemarspiguet/index-"&Page&".htm?pageSize=30"]),
#"Table extraite à partir de code Html" = Html.Table(Source,
{{"Titre", ".text-sm.text-bold"},
{"Informations", ".text-sm.m-b-2"},
{"Prix", ".align-items-end .text-bold"},
{"Frais de port", ".text-sm.text-muted"},
{"Pays", ".text-uppercase"},
{"Type annonce", ".js-article-item-article-badge-wrapper"},
{"Type vendeur", ".article-item-seller-badge"},
{"Code Annonce", ".article-item-container a", each [Attributes][href]}},
[RowSelector=".js-article-item-article-badge-wrapper"]),
#"Type modifié" = Table.TransformColumnTypes(#"Table extraite à partir de code Html",{
{"Titre", type text},
{"Informations", type text},
{"Prix", type text},
{"Frais de port", type text},
{"Pays", type text},
{"Type annonce", type text},
{"Type vendeur", type text},
{"Code Annonce", type text}}),
#"URL Complète" = Table.AddColumn(#"Type modifié", "URL", each "https://www.chrono24.fr" & [Code Annonce]),
#"Type modifié1" = Table.TransformColumnTypes(#"URL Complète",{{"URL", type text}}),
#"Personnalisée ajoutée" = Table.AddColumn(#"Type modifié1", "Page", each Page),
#"Type modifié2" = Table.TransformColumnTypes(#"Personnalisée ajoutée",{{"Page", type text}})
in
#"Type modifié2"

 

Source = Web.Contents("https://www.chrono24.fr/audemarspiguet/index-1.htm?pageSize=30",
[Query = "www.chrono24.fr/audemarspiguet/index-"&Page&".htm?pageSize=30"]),

 

I think I miss something a the point.

Someone can help me to fix it ?

 

BR

Julien

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Please follow the documentation. Use RelativePath and Query parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Please follow the documentation. Use RelativePath and Query parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors