简体   繁体   中英

How to clone repository onto a local machine?

Cloning repository

I need this for scraping TikTok by using TikTokApi created by David Teather.

On his guideline, I have to clone repository using Docker and here are the script

docker build . -t tiktokapi:latest
docker run -v TikTokApi --rm tiktokapi:latest python3 your_script.py

I had install :

  • Docker
  • WSL.
  • Git
  • Visual Studio Code
  • Visual Studio Code Remote Containers Extension

After all, what should I do? I am so confused to clone the repository. However, I am not sure with the installation of Visual Studio Code Remote Containers Extension.

Thank you in advance for your guide.

I think you are missleading two things:

  • docker
  • git
  1. First you need to get this repo using git command THEN you will be able to use the docker command. Git will allow you to "clone" a repository. From the terminal within visual studio code or using one of the extension please do : git clone <the URL of the repo> . ie : git clone git@github.com:whatever or git clone https://github.com:whatever
  2. Second after that you will be able to use the docker build . command. please run the docker command from the root of the project.

Side note :

As the project owner wrote on the github main page :

Clone this repository onto a local machine then run the following commands.

 docker run -v TikTokApi --rm tiktokapi:latest python3 your_script.py

that is why you need first to clone the repo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM