{"id":14980317,"url":"https://github.com/amkhrjee/ocwd","last_synced_at":"2025-05-08T23:30:49.875Z","repository":{"id":157446884,"uuid":"583438220","full_name":"amkhrjee/ocwd","owner":"amkhrjee","description":"Bulk download MIT OCW course resources at one click!","archived":false,"fork":false,"pushed_at":"2025-04-13T15:09:09.000Z","size":119,"stargazers_count":65,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T15:39:27.458Z","etag":null,"topics":["cross-platform","linux","macos","mit-ocw","mit-ocw-dl","powershell","powershell-script","windows"],"latest_commit_sha":null,"homepage":"https://amkhrjee.github.io/ocwd/","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amkhrjee.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":"2022-12-29T19:29:52.000Z","updated_at":"2025-04-13T15:09:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"14b8a2d7-3854-4e5a-b65f-c2071f51de62","html_url":"https://github.com/amkhrjee/ocwd","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":"0.030612244897959218","last_synced_commit":"6d4b5ab84b605937b1a76ff3e9cc1e8a35af9b93"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amkhrjee%2Focwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amkhrjee%2Focwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amkhrjee%2Focwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amkhrjee%2Focwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amkhrjee","download_url":"https://codeload.github.com/amkhrjee/ocwd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253163455,"owners_count":21864079,"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":["cross-platform","linux","macos","mit-ocw","mit-ocw-dl","powershell","powershell-script","windows"],"created_at":"2024-09-24T14:01:36.085Z","updated_at":"2025-05-08T23:30:49.852Z","avatar_url":"https://github.com/amkhrjee.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003eocwd\u003c/h1\u003e\n    \u003cp align = \"center\"\u003eBulk download courses at the press of a button 📥\u003c/p\u003e\n\u003c/p\u003e\n\u003cp align=\"center\" \u003e\n   \u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/amkhrjee/ocwd\"\u003e\n    \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/amkhrjee/ocwd\"\u003e\n    \u003cimg alt=\"PowerShell Gallery\" src=\"https://img.shields.io/powershellgallery/p/ocwd?color=white\"\u003e\n    \u003cimg alt=\"PowerShell Gallery Version\" src=\"https://img.shields.io/powershellgallery/v/ocwd\"\u003e\n    \u003cimg alt=\"PowerShell Gallery\" src=\"https://img.shields.io/powershellgallery/dt/ocwd\"\u003e\n\u003c/p\u003e\n\n## What does `ocwd` do?\n`ocwd` is a command line utility that downloads resources at bulk from any [MIT OCW](https://ocw.mit.edu/) course to any storage path provided by you, with just one key press! \n\nThe resources are available under the creative commons license and MIT reserves all rights to the content. This tool simply scrapes the OCW website for resources and offers a simple and easy way for downloading any course resource for offline use.\n## Installation Guide\n### Without using PowerShell\n#### 🐧 Linux + 🍎 macOS\nPaste the following to your terminal:\n```sh\n/bin/bash -c \"$(sudo curl -fsSL https://raw.githubusercontent.com/amkhrjee/ocwd/main/ocwd.sh -o /usr/local/bin/ocwd \u0026\u0026 sudo chmod +x /usr/local/bin/ocwd)\"\n```\n\nThis simply copies the `ocwd.sh` file to your `/usr/local/bin/` directory. Now you can use `ocwd` from any directory in your system.\n\n\u003chr\u003e\n\n### Using PowerShell\n#### 🪟 Windows\n`ocwd` works with both [Windows PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7.3) and the cross-platform [PowerShell-Core](https://learn.microsoft.com/en-us/powershell/scripting/overview?view=powershell-7.3). \n\nAll recent versions of Windows 10 \u0026 11 already come with Windows PowerShell installed (search for `PowerShell` using Windows Search to find out whether you have it or not). However, you can also follow the installation guides provided here in case you don't have PowerShell installed. \n\n\u003cdetails\u003e\n\u003csummary\u003e\n \u003ch3\u003ePowerShell Installation Guide for Windows\u003c/h3\u003e \n\u003c/summary\u003e\nPowerShell comes in two flavours - PowerShell Windows and PowerShell-Core. You are recommened to download PS-Core, as it is the one in active development by Microsoft and thus have the latest features. `ocwd` downloads work faster with PS-Core (thanks to multi-threading!)\n\n\u003cbr\u003e\n\n### PowerShell Core Installation Guide\nYou can read the official installtion guide here.\n\nPowerShell Core is a cross-platform version of PowerShell that is open-source and available on Windows, macOS, and Linux. Here is a guide to install PowerShell Core on your system:\n\n1. First, visit the following link to download the latest version of PowerShell Core: https://github.com/powershell/powershell/releases\n\n2. Select the appropriate download link for your system. For example, if you are running Windows, select the MSI installer link. If you are running macOS or Linux, select the appropriate package for your system.\n\n3. Once the download is complete, open the installer file and follow the prompts to install PowerShell Core on your system.\n\n4. Once the installation is complete, you can launch PowerShell Core by opening a terminal window and typing `pwsh`.\n\nTo verify that PowerShell Core has been installed correctly, you can run the following command:\n\n```ps1\n$PSVersionTable\n```\nThis should display information about the version of PowerShell Core that you have installed.\n\nThat's it! You have now installed PowerShell Core on your system. You can start using PowerShell Core by typing commands into the terminal window.\n\n### Windows PowerShell Installation Guide\n\nWindows PowerShell is a command-line shell and scripting language that is included with Windows by default. Here is a guide to install Windows PowerShell:\n\n1. Check if Windows PowerShell is already installed on your system. To do this, open the Start menu and search for \"PowerShell\". If PowerShell is installed, you should see it listed in the search results.\n\n2. If Windows PowerShell is not installed on your system, you can install it by following these steps:\n\n#### On Windows 10/11:\n\n- Go to the Start menu and select \"Settings\".\n- Select \"Apps\" from the settings menu.\n- Click on \"Apps \u0026 features\" from the left menu.\n- Click on the \"Manage optional features\" button.\n- Click on the \"Add a feature\" button.\n- Scroll down the list of features and select \"Windows PowerShell\".\n- Click the \"Install\" button to begin the installation process.\n\n#### On Windows 7:\n\n- Go to the following link to download the Windows Management Framework (WMF) installer: https://www.microsoft.com/en-us/download/details.aspx?id=54616\n- Once the download is complete, open the installer file and follow the prompts to install WMF on your system. This will install Windows PowerShell on your system.\n\n3. Once the installation is complete, you can launch Windows PowerShell by opening the Start menu and searching for \"PowerShell\".\n\n4. To verify that Windows PowerShell has been installed correctly, you can run the following command:\n```ps1\n$PSVersionTable\n```\n\nThis should display information about the version of Windows PowerShell that you have installed.\n\nThat's it! You have now installed Windows PowerShell on your system. You can start using Windows PowerShell by typing commands into the terminal window.\n\u003c/details\u003e\n\nIf you have PowerShell installed, we can proceed to install `ocwd`.\n\n`ocwd` is currently available via Microsoft's [PSGallery](https://www.powershellgallery.com/packages/ocwd/2.5.0). If you have installed external scripts before, you can skip to the installation script, otherwise, open PowerShell in Administrator Mode and paste the following in order: \n\n```ps1\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned\n```\n```ps1\nSet-PSRepository -Name PSGallery -InstallationPolicy Trusted\n```\nThis will install `ocwd` to your system:\n```ps1\nInstall-Script -Name ocwd\n```\n\nAfter the installation is over, you are suggested to close and reopen your terminal for reloading the shell.\n\n\n\n## Usage\nThere are two ways to use `ocwd`:\n```ps1\nocwd your_link_here\n```\nor just type in the command:\n```ps1\nocwd\n```\n## Demo \n\u003c!-- \u003cimg src=\"https://i.imgur.com/ODutHXm.gif\" /\u003e --\u003e\n\n![demo image](https://i.imgur.com/1yPPAng.png)\n\nIf the GIF is not working, you can watch this demo  video instead: https://www.youtube.com/watch?v=9Oe9vrEQY28\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famkhrjee%2Focwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famkhrjee%2Focwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famkhrjee%2Focwd/lists"}