{"id":22610823,"url":"https://github.com/sshehrozali/get-github-repo","last_synced_at":"2025-03-28T23:14:04.345Z","repository":{"id":119424529,"uuid":"288676507","full_name":"sshehrozali/get-github-repo","owner":"sshehrozali","description":"Python program to access all the contents of a GitHub repository provided by username","archived":false,"fork":false,"pushed_at":"2020-08-20T19:20:54.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T09:46:58.034Z","etag":null,"topics":["automation","git","github","github-api","github-api-v3","github-repos","python","python3","requests"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sshehrozali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-19T08:28:43.000Z","updated_at":"2020-08-20T19:22:05.000Z","dependencies_parsed_at":"2023-04-23T08:21:58.936Z","dependency_job_id":null,"html_url":"https://github.com/sshehrozali/get-github-repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshehrozali%2Fget-github-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshehrozali%2Fget-github-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshehrozali%2Fget-github-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshehrozali%2Fget-github-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshehrozali","download_url":"https://codeload.github.com/sshehrozali/get-github-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246112666,"owners_count":20725301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","git","github","github-api","github-api-v3","github-repos","python","python3","requests"],"created_at":"2024-12-08T16:08:16.501Z","updated_at":"2025-03-28T23:14:04.335Z","avatar_url":"https://github.com/sshehrozali.png","language":"Python","readme":"\u003ch1\u003eGet-GitHub-Repo\u003c/h1\u003e\n\n\u003ch2\u003eNOTE\u003c/h2\u003e\n\u003cp\u003eThe program is designed for unauthenticated user without using \u003ci\u003eusername and password\u003c/i\u003e or GitHub \u003ci\u003eACCESS TOKENS\u003c/i\u003e.So chances\n    are returning reponses could be limited [if not within range 30]\u003c/p\u003e\n\n\u003ch2\u003eWhat is Automation?\u003c/h2\u003e\n\u003ch3\u003eA little background\u003c/h3\u003e\n\u003cp\u003eSometimes we just need to stop typing on the keyboard, hold a cup of coffee in hands,sit back and let the computer automate all the\n    tasks on its own to get the most accurate search results so that we can quickly wind-up other things and move onto next task.\n    At this point a term called \u003cb\u003eAutomation\u003c/b\u003e comes handy which takes the burden of all the recursive steps and produces the desired\n    output without \u003ci\u003ehuman interference.\u003c/i\u003e\u003c/p\u003e\n\n\u003ch3\u003eBut Why?\u003c/h3\u003e\n\u003cp\u003eToday, where hundreds of millions and billions of information and data are updated at every notch of a second (almost) and thousands of\n    requests are made by millions of people regularly so it becomes super difiicult to manage,manipulate,search and update data of a\n    particular search filter and qualifier.That's why \u003cb\u003e\u003ci\u003eAutomation\u003c/i\u003e\u003c/b\u003e makes computer handle the recursive steps\n    and keep querying the results until a break or base condition is met.Similarly in the world of Git and GitHub, automated scripts\n    and programs can be super useful to manage and search repos and projects.\u003c/p\u003e\n\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003eLet's suppose you have to get all the contents of \u003ci\u003ehello-world\u003c/i\u003e repository of \u003ci\u003euser: hellocat.\u003c/i\u003eSo basically there are two ways\n    to approach this problem:\u003c/p\u003e\n    \u003cul\u003e\n      \u003cli\u003eFirst one is old traditional method of opening your browser first.Head to the URL address bar.Type \u003ci\u003egithub.com/user_name.\u003c/i\u003e\n          Get to the homepage.Go to repositories.Then keep scrolling your mouse down until you find your desired repo and then click\n          on it to open its content.\u003c/li\u003e\n\n   \u003cbr\u003e\n\n   \u003cli\u003eSecond one is super fast and intelligent.You run my Python program.You just type \u003ci\u003eusername\u003c/i\u003e of a person and boom\n          you are done, all the repositories of that \u003ci\u003eusername\u003c/i\u003e along with info and data are printed on your screen.Then you\n          just type the correct \u003ci\u003erepo_no\u003c/i\u003e to access and see all the contents of that repo along with \u003ci\u003eURL.\u003c/i\u003eWell, pretty nice\n            huh?\u003c/li\u003e\n    \u003c/ul\u003e\n\n\u003ch2\u003eHow my program works?\u003c/h2\u003e\n\u003cp\u003eWell, its pretty nice and decent.You can open the \u003ci\u003e.py code\u003c/i\u003e and read the comments so that you can understand on your own.\n    The program uses \u003ci\u003eREST API\u003c/i\u003e and \u003ci\u003eGitHub API\u003c/i\u003e to access all the public ids and repositories so that you can access the\n    contents.A simple \u003ci\u003erequest\u003c/i\u003e is made to get the repo data of \u003ci\u003einput: username\u003c/i\u003e and then correct \u003ci\u003erepo_no\u003c/i\u003e is used\n    to pass \u003ci\u003erepo_name\u003c/i\u003e to function which again make \u003ci\u003erequest\u003c/i\u003e and stores JSON response in the form of list.\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshehrozali%2Fget-github-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshehrozali%2Fget-github-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshehrozali%2Fget-github-repo/lists"}