How can I query the database of users that interacted with my site and linked their metamask?

Hi I want to send a query to my moralis server to see the details of the users who have interacted with my website, such as their ethereum account addresses, I was looking through the docs and found this

import json,httplib
connection = httplib.HTTPSConnection('YOUR.PARSE-SERVER.HERE', 443)
connection.request('GET', '/parse/classes/GameScore', '', {
       "X-Parse-Application-Id": "${APPLICATION_ID}",
       "X-Parse-REST-API-Key": "${REST_API_KEY}"
result = json.loads(connection.getresponse().read())
print result

I tried to follow that code example, pip install httplib returned an error:

Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement httplib (from versions: none)
ERROR: No matching distribution found for httplib

and when I tried to run it without pip I got the following error:

ModuleNotFoundError: No module named ‘httplib’

Whats the problem here? Am I doing the right thing? Are the docs out of date? As stated, I want to query the moralis server to return the database for the users that interacted with my website (then I will use pandas to process the data).

Hi @moonboi9001

You can do this using Moralis cloud functions. Here is an example of cloud function. You can call it from the frontend, UI dashboard, backend etc.

Take a look at :

Hope this will help you :man_mechanic:

How do you do this in python? Seems like all the solutions only give examples in javascript :confused:

Cloud functions supports currently only JS.

You can create this function in JS in cloud functions and call it directly using a simple GET request