Looking for some help getting HTTP Request to pull data from My Google assistant activity web page.

148 views
Skip to first unread message

Rich D

unread,
Feb 20, 2021, 12:47:58 PM2/20/21
to Tasker Google Groups Post
I have made a project that allows you to get your any Google command into Tasker.  




However it currently uses autoinput to scrape the screen of the web site to retrieve the data. This is slow and clunky.  I would like to find a way to get the data with a HTTP Request action.  

There is no password for the site. It somehow knows my device is linked to the assistant so I can copy and paste the address from the browser from one device to another and it will open without any log in.  I just do not know how to get the data from a site like that. Any help would be greatly appreciated.. 

Thanks,  Rich..

Rich D

unread,
Feb 21, 2021, 6:29:18 PM2/21/21
to Tasker
Edit.. Solved... I was able to parse the data I needed from that website using the auto tools HTML read action. Here is the CSS query I used to retrieved the data. 


.l8sGWb,.rp10kf,.wlgrwd,[data-timestamp]

The first three in the list are class names the third one is an attribute name. 

I never realized you could get the source code for a web page on an Android device directly in the chrome browser.  You just need to edit the address and place

view-source:

At the very front of it. 

after viewing the source code I was able to stumble my way through setting up the CSS queries
Reply all
Reply to author
Forward
0 new messages