{"id":19265366,"url":"https://github.com/tisma95/github-clone","last_synced_at":"2026-01-24T14:43:04.134Z","repository":{"id":179865079,"uuid":"664242122","full_name":"tisma95/github-clone","owner":"tisma95","description":"This repository goal is to clone/pull all repositories of github associate to the user to specific location.","archived":false,"fork":false,"pushed_at":"2024-10-28T21:19:11.000Z","size":559,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T15:21:44.865Z","etag":null,"topics":["github","github-actions","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tisma95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-09T11:08:48.000Z","updated_at":"2024-10-28T21:19:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"42663eb1-0e4a-47af-b5cf-add3740a7b28","html_url":"https://github.com/tisma95/github-clone","commit_stats":null,"previous_names":["tisma95/github-clone","edi-corporate/github-clone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgithub-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgithub-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgithub-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgithub-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tisma95","download_url":"https://codeload.github.com/tisma95/github-clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250119872,"owners_count":21378103,"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":["github","github-actions","python","python3"],"created_at":"2024-11-09T19:45:48.980Z","updated_at":"2026-01-24T14:43:04.126Z","avatar_url":"https://github.com/tisma95.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Repository Clone\n\n## Author\n\n**Name**: Ismaël Maurice\n\n**Github**: https://github.com/tisma95\n\n**Email**: ismael.tuo@edigrp.com \u003cbr\u003e\n\n## Description\n\nThis repository goal is to clone all repositories of github associate to the user:\n + the personal user repositories private and public,\n + the user organization repositories,\n + the ancestor repositories,\n + the fork repositories.\n\nIf the repository existed pull to update will be.\n\nClone all branchs in folder.\n\n**WARNING:**\nThe repository name with space will be replace in clone folder by -. Example the repository name like **repo 1** will be clone with name **repo-1**.\n\n## Requirement\n\nBefore starting the project you need to install on your computer the following packages:\n\n[Python \u003e=3.9](https://www.python.org/downloads/)\n\n[Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\n\n\n## Started\n\nRun the commands inside the folder:\n\n1. If no **env** folder exists init the environment else skip this step\n```cmd\n    python -m venv env\n```\nor\n```cmd\n    python3 -m venv env\n```\nor for ubuntu\n```cmd\n    virtualenv venv\n```\n\n```node\n    If any problem follow this page to fix and intall virutalenv: https://gist.github.com/frfahim/73c0fad6350332cef7a653bcd762f08d\n```\n\n2. If the env folder already exists, run the following command to activate it\n```cmd\n    source env/bin/activate\n```\nor for windows\n```cmd\n    env\\Scripts\\activate.bat\n```\n\n3 Run the installation of package via following command\n```cmd\n    pip install -r requirements.txt\n```\n\n4. Init the environment variable by following [Environment variables](#environment-variables)\n5. Create the token on your **Github** access only read access is required choose between:\n   + Token via [Fine-grained personal access tokens](https://github.com/settings/tokens?type=beta) with following authorization:\u003cbr\u003e\u003cbr\u003e\n\n    \u003cimg src=\"./img/fine-grained.png\" alt=\"\" width=\"50%\"/\u003e\n\n    + Token via [Personal access token (classic)](https://github.com/settings/tokens/new) with following authorization (only repo):\u003cbr\u003e\u003cbr\u003e\n\n    \u003cimg src=\"./img/classic.png\" alt=\"\" width=\"50%\"/\u003e\n\n    \u003e **Warning**\n    \u003e If you have the fork repository, should give the workflow authorization to permits to synchronize the fork repository before clone it. Like following image:\n    \u003cimg src=\"./img/workflow.png\" alt=\"\" width=\"50%\"/\u003e\n\n6. Run the script with command `python main.py` or `python3 main.py`\n\n## Environment variables ##\n\nCreate the file **.env** inside folder with following example variable\n\n```yaml\n# Clone repo host\nDOMAIN = github.com\n# Domain protocol type http or https\nPROTOCOL = https\n# Access Token To Domain\nTOKEN = your_generate_token_here\n# Storage Folder =\u003e Folder where the repositories will be save =\u003e example /home/toto or C:\\users\\toto for windows\nFOLDER = folder_path_here\n```\n\n## Other informations\n\n+ If new package is install we can update the **requirements.txt** with command `pip freeze \u003e requirements.txt` or `python3 -m pip freeze \u003e requirements.txt`\n\n+ Exit the env via: `deactivate` or for windows `env\\Scripts\\activate.bat`\n\n\n## Useful packages\n\n[Requests Documentation](https://requests.readthedocs.io/en/latest/user/quickstart/)\n\n[Github REST API Documentation](https://docs.github.com/en/rest?apiVersion=2022-11-28)\n\n[python-dotenv Documentation](https://pypi.org/project/python-dotenv/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisma95%2Fgithub-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftisma95%2Fgithub-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisma95%2Fgithub-clone/lists"}