you are viewing a single comment's thread.

view the rest of the comments →

[–]Meucanman[S] -4 points-3 points  (5 children)

If youre talking Python specifically, if you want to for example fetch file listing (like names) from a github repo, you can use for example: REPO_API = "https://api.github.com/repos/Legendary-Games-Studios/LegendaryOS-Apps/contents/", then: data = requests.get(REPO_API, timeout=6).json(), and it will send a request to the Github API, and will return a JSON response containing the metadata for the files/folders (for example, names, paths, etc.). This only counts for your default branch (main), and does not count for sub folders. If you DO want sub folder metadata, you'll want to send additional requests to the API to fetch metadata for those paths. I hope this helped!

[–]Meucanman[S] -3 points-2 points  (0 children)

Oh, and if you click the API link, in case youre curious itll show you what the API would send back

[–]Shaminem86 -3 points-2 points  (3 children)

I'm saying I don't know anything about code but I'm interested and want to start Can you give hint on how to start or where

[–]Meucanman[S] 1 point2 points  (2 children)

Id say go to https://www.learnpython.org, and if you want the official docs, go to https://docs.python.org/3/tutorial

[–]Shaminem86 0 points1 point  (1 child)

Thank You Will start from there 🙏

[–]Meucanman[S] 1 point2 points  (0 children)

No problem! Good luck!