Replit downloader

Downloads all replits from your account.

How to Find Your Cookie and User-agent

  1. Log into your replit account

  2. Open developer tools by right clicking and selecting inspect, or by using the keyboard shortcut Ctrl Shift J (Windows) or Cmd Option J (Mac) Screen Shot 2022-05-29 at 8 21 35 PM

  3. Select the Network tab on the top of the developer tools window Screen Shot 2022-05-29 at 8 23 12 PM

  4. Refresh Screen

  5. Click on any of the rows named graphql from the table Screen Shot 2022-05-29 at 8 25 16 PM

  6. Select the Headers tab on the right of the table Screen Shot 2022-05-30 at 10 46 49 AM

  7. Scroll down until you find your cookie and user-agent Screen Shot 2022-05-30 at 10 48 58 AM

How to Run the Program

  1. Clone this repository
  2. Go to your terminal/console. Make sure you have python3 installed
  3. Enter the local directory where you have cloned the repository
  4. Run pip install -r requirements.txt to install the dependencies
  5. First, run main.py using python3 main.py "your cookie in double quotes" "your user-agent in double quotes" to download all files and folders from your replit account. It supports recursive folder structure, and will create a folder called Files to store the downloaded zip files
  6. Next, run unzipper.py using python3 unzipper.py to unzip the downloaded files. The new files will be moved to a folder called Replits. The Files folder containing the zip files will be deleted after.