cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Digger
Helper III
Helper III

Web.contents regex

How do get value from Web.contents response

for example

<input type="hidden" name="authenticity_token" value="sUX0u4idK1B1PuhPKIvRI/vlO3iuTeGvK7MLoJZ9X+Ag==">

 

i need get authenticity_token value

but got empty values

Digger_0-1634823553505.png

 

How to do that?

1 ACCEPTED SOLUTION
Digger
Helper III
Helper III

solved
= Html.Table(Search, {{"Input", "[name=""authenticity_token""]", each [Attributes][value]}})

View solution in original post

5 REPLIES 5
Digger
Helper III
Helper III

solved
= Html.Table(Search, {{"Input", "[name=""authenticity_token""]", each [Attributes][value]}})

View solution in original post

amitchandak
Super User
Super User

@Digger , Are you looking for Token based Auth ?

 

https://community.powerbi.com/t5/Desktop/Pull-data-from-RESTful-API-with-token-authentication/m-p/80...

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

@amitchandak  yes, but your example does not extract anything from page, you must provide auth token, but dont have it, as first call i must get auth token from login page and then send credentials both with token

@Digger , You have auth token ?

if yes

Check this example

https://chris.koester.io/index.php/2015/07/16/get-data-from-twitter-api-with-power-query/

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

@amitchandak  ofcource nobody has auth token, as it is inside input tag, and you example will not work for anybody

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors