Skip to content

Tag: request

Unable to retrieve specific elements from JSON api

Implement a function fetchDataForUser, which fetches data from a remote JSON api and then returns a part of it. Since this is a network call, it will need to be an asynchronous function and return the data via a callback. JSON Data: https://gist.githubusercontent.com/kvirani/f7d65576cc1331da1c98d5cad4f82a69/r…

The script is not working in Mozilla Firefox

I need to send some data to the server when the page is closed or refreshed. Therefore, I created a simple script that can handle my needs. The problem is that this script is not working in Mozilla firefox. The script is working in many other browsers like chrome, chromium, brave, opera, falkon, epiphany, qut…

what is this request response format?

i’m trying to scrape a website but the thing is that i get this as a response (most likely javascript ? ). I am using request in order to send requests to the website. Is it possible to convert it to a parsable format ? I thought of using jQuery to send request an accept a certain response format.But as