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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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