To request a specific node from firebase, you need to specify it in your URL, in the following example I will load a specific node (-KeuhkMH8SQcYJHatRnD) from the main "news" node:
def load_news():
try:
loader = urllib.request.urlopen("https://<YOUR-PROJECT-ID>.firebaseio.com/news/-KeuhkMH8SQcYJHatRnD.json")
except urllib.error.URLError as e:
message = json.loads(e.read())
print(message["error"])
else:
print(loader.read())
source
share