-1

How do I get each search result to go from top to bottom instead of all cluttered up left to right?

picture of how it is right now:

enter image description here

how I want it to be: enter image description here

code:

from youtubesearchpython import VideosSearch

videosSearch = VideosSearch('wonderwall', limit=100)
print(videosSearch.result())
Karl Knechtel
  • 62,466
  • 11
  • 102
  • 153
J.R. BEATS
  • 93
  • 6
  • Does this answer your question? [How to prettyprint a JSON file?](https://stackoverflow.com/questions/12943819/how-to-prettyprint-a-json-file) – Karl Knechtel Apr 01 '23 at 07:26

1 Answers1

1

Pretty Print is the tool you seek.

    from pprint import pprint
    from youtubesearchpython import VideosSearch
    videosSearch = VideosSearch('wonderwall', limit=100) 
    pprint(videoSearch.result())

May need to cast result to JSON. Let me look up the YouTube API.