Skip to content

Instantly share code, notes, and snippets.

@dumplingcompromise
Created February 20, 2021 22:05
Show Gist options
  • Save dumplingcompromise/7f268ed0a4b5b7eaaf9077660a10664a to your computer and use it in GitHub Desktop.
Save dumplingcompromise/7f268ed0a4b5b7eaaf9077660a10664a to your computer and use it in GitHub Desktop.
imports for decentraland api project
import requests
import json
from gql import gql, Client
import pandas as pd
import time
from gql.transport.requests import RequestsHTTPTransport
# Select your transport with a defined url endpoint
transport = RequestsHTTPTransport(url="https://api.thegraph.com/subgraphs/name/decentraland/marketplace")
# Create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment