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

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.