Retrieve the answer to a request from a web site - html

I'm just trying to check every second this website and retrieve the answer to my request. If this answer changes I want to be informed by email.
Thanks for your help!
I found the query I was looking for with google inspector but I don't know how to retrieve it or even how to request it again in a loop

Related

how to fetch Instagram user profile picture via API

I'm trying to fetch the Instagram user profile picture. I found an API to achieve this task
https://www.instagram.com/{username}/?__a=1
but the above API only works when I'm logged into my account, else it wouldn't return the JSON response
Is there any workaround for this? Lots of websites are doing this, so I'm sure there is some way to do it
any help would be appreciated
Your Question is a Duplicate.
I was able to try both urls and worked well.
https://www.instagram.com/USERNAME/?__a=1
https://i.instagram.com/api/v1/users/USER_ID/info/
Tried first one on Chrome and second one on Insomnia (both not logged on Instagram).

How do I build a suitable JSON request to post it to an API?

I am trying to scrape the "Amenities and More" portion of the Yelp, and came across this very helpful answer that explains the best way to do it (BeautifulSoup web scraping for a webpage where information is obtained after clicking a button).
The problem is, I am unsure how the person who posted the answer (Martin Evans) knew that typing "GetBusinessAttributes" and "GetBizPageProperties" would tell Yelp to return the requested data. I used my network dev tools to check what data was being requested when I visited https://www.yelp.com/biz/ziggis-coffee-longmont, but found no mention of "GetBusinessAttributes" or "GetBizPageProperties".
Can someone explain how he knew that sending "GetBusinessAttributes" and "GetBizPageProperties" would return the desired data?

Facebook Graph API v2.10 page likes

disclosure. I am not a programmer
For the past year or so I have been utilizing the Facebook Graph API to pull Facebook page "likes" into a spreadsheet so that I can track how many likes my page gets vs other pages of similar business. It is kind of rudimentary but it became cumbersome to have to visit every page each week to get the total page "Likes" so this my solution.
I was utilizing this formula...
=importjson(concatenate("https://graph.facebook.com/",APINames!$B11,"?access_token=",$B$1),"/likes","noHeaders")
I reference this post...
Get Facebook page like count for OpenGraph v2.10
Which states to use the a different URL to retrieve page likes.
https://graph.facebook.com/v2.10/<page-id>?access_token=<access-token>&fields=fan_count
When inputting the new URL in my formula function I still receive a reference error.
=importjson(concatenate("https://graph.facebook.com/v2.10/",APINames!$B3,"?access_token=",$B$1),"&fields=fan_count","noHeaders")
If anyone could point me in the right direction I would be very grateful. I have spent over an hour scouring the web for information as well as reading the new changelog for v2.10. I fear going back to the manual process!!
I'm not 100% sure, but you should try this:
=importjson(concatenate("https://graph.facebook.com/v2.10/",APINames!$B3,"?access_token=",$B$1,"&fields=fan_count"),"/fan_count", "noHeaders")
I think the brackets are on the wrong place, because you need to concatenate the url, the page-id (in APINames), the query parameter access_token, the access token form cell B1 and the fields query_parameter.
At least with this change I get a fan_count. Interesting use case, BTW.

How can I retrieve HTTP responses from recorded log without receiving actual response from the server?

I think this is how should it work: I record the HTTP activity while browsing my website online. Then, When running my website's HTML offline, no network activity is made. And when a request is made, a response is retrieved from the recorded log.
I need to know how can I make this.
I think this tool is little near from what I want to do. But, unfortunately I don't know how to use it for my case.
The fact that you tagged this post with Fiddler suggests that you know that Fiddler can already do this using the AutoResponder tab. You may wish to update your question to explain why you don't want to do that.

Is it possible to get scrobbling from information from last.fm API

I am getting information about the track I am listening to from last.fm.. I cannot however get the information about what I am scrobbling from, like you see on you last.fm page: "scrobbling now from spotify"
Does anyone know if this is possible without scraping the user page?
I don't see anything in the API docs - could easily be missing something.
The call I am using to get the now playing track is user.getRecentTracks which you use a attribute on the first song returned (nowplaying="true") to tell if its being played now and there is nothing about what I am listening on there.
The answer is: no, Last.fm API doesn't support this feature.
The only way you can get this information is to scrap it from <div class="scrobblesource">.