C
C
CatCotCod2020-09-18 11:41:55
Python
CatCotCod, 2020-09-18 11:41:55

Sampling from JSON in Python, how to implement?

Hello!

There is a url that produces JSON, from which I pull information.
The problem is that I only pull the first values ​​(the system displays the flight schedule). It is necessary to pass and display all flights of their value.

Now (for example):

Flight: 1
Start time: 10
End time: 20

And that's it. And you need to do this:

Flight: 1
Start time: 10
End time: 20

...... flights ......

Flight: 12
Start time: 10
End time: 20

, etc.

How to implement? Tell me please.
I am attaching screenshots of the file from where I get it.

5f6472b6b9b4f352935162.jpeg
5f6472c5b3baf920168611.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-09-18
@bacon

Again, ignoramuses got it, to work with JSON, you just need to know the basics of python - working with data structures list (list) and dict (dictionary)

S
soremix, 2020-09-18
@SoreMix

https://pythonworld.ru/tipy-dannyx-v-python/spiski...
https://pythonworld.ru/tipy-dannyx-v-python/slovar...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question