MIT OpenCourseWare 6.100L: Introduction to CS and Programming using Python (Fall 2022) Orijinal kaynak: ocw.mit.edu
MIT OpenCourseWare, tüm ders materyallerini (notlar, problem setleri, videolar, vb.) ücretsiz olarak sunmakta ve herkesin indirebileceği bir çevrimdışı site paketi sağlamaktadır. Bu repo, 6.100L – Fall 2022 paketinin indirilmiş halidir.
Ancak orijinal indirilen paket çeşitli sorunlarla gelir — bu repo bu sorunları giderilmiş, kullanıma hazır hale getirilmiş versiyondur.
| Sorun | Açıklama |
|---|---|
| Videolar oynatılamıyordu | OCW sitesi videoları YouTube embed ile gösterir. Tarayıcılar yerel dosyalarda YouTube embed çalıştırmaz → Hata 153. |
| Yalnızca ilk 10 kaynak görünüyordu | Her kategoride (Lecture Videos, Lecture Notes, vb.) ilk 10 öğe listeniyor, altında "See all" butonu çıkıyordu. |
| "See all" butonu bozuktu | Offline pakette "See all" bağlantısı doğru yere yönlendirilemiyor, tıklayınca hata veriyordu. |
| İndirme ikonu hata veriyordu | Download sayfasındaki her video kutusundaki indirme logosu doğrudan MP4 dosyasına linkliydi; MP4 yoksa tarayıcı hata sayfası açıyordu. |
| LRT linkleri pasifti | Ana sayfada ve download sayfasında "Learning Resource Types" etiketleri tıklanabilir değildi. |
- Tüm 26 ders sayfasındaki VideoJS iframe kaldırıldı.
- Her videoya iki buton eklendi:
- ▶ YouTube'da İzle →
target="_blank"ile yeni sekmede açılır, Error 153 olmaz. - ⬇ Çevrimdışı İzle (MP4) → İndirilen MP4 dosyasını tarayıcıda oynatır.
- ▶ YouTube'da İzle →
- "See all" butonları kaldırıldı — tüm içerik tek sayfada gösterilir.
- 6 kategoriye 46 eksik öğe eklendi, doğru sıralamaya getirildi.
- "Learning Resource Types" etiketleri ilgili bölümlere anchor link olarak atandı.
- Video küçük resimleri: doğrudan MP4 → kaynak sayfasına yönlendirildi (MP4 yoksa hata vermez).
pages/video-help/index.htmltam MIT OCW layoutuyla yeniden oluşturuldu.- Türkçe ve İngilizce açıklama, adım adım çevrimiçi/çevrimdışı izleme kılavuzu içerir.
- Ana sayfadaki "Learning Resource Types" etiketleri ilgili sayfalara linkedlendi.
index.html dosyasını tarayıcınızda açın.
Her ders sayfasındaki "▶ YouTube'da İzle" butonuna tıklayın. → İnternet bağlantısı gerekir, indirme gerektirmez.
Önce videoları bir kez indirmeniz gerekir:
# Hızlı indirme (önerilen):
py.exe "Download_Videos_From_MIT"
# Yüksek kalite (FFmpeg gerektirir):
py.exe "Download_HQ_Videos_From_Youtube.py"İndirme tamamlandıktan sonra ders sayfalarındaki "⬇ Çevrimdışı İzle (MP4)" butonu aktif hale gelir.
📁 Videolar şu dizine kaydedilir:
courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/
pip install -r requirements.txtrequirements.txt içeriği: requests, tqdm, beautifulsoup4, yt-dlp
| Yöntem | Açıklama |
|---|---|
| Sistem kurulumu | ffmpeg -version ile kontrol edin |
| Taşınabilir | ffmpeg/bin/ffmpeg.exe konumuna kopyalayın |
MIT OpenCourseWare provides all course materials (notes, problem sets, videos, etc.) for free and offers a downloadable offline site package. This repo is the downloaded version of 6.100L – Fall 2022.
However, the original downloaded package comes with several issues — this repo is a fixed, ready-to-use version.
| Issue | Description |
|---|---|
| Videos could not be played | OCW uses YouTube embeds for video. Browsers block YouTube embeds on local files → Error 153. |
| Only first 10 resources shown | Each category (Lecture Videos, Lecture Notes, etc.) only listed the first 10 items, with a "See all" button below. |
| "See all" button was broken | In the offline package, the "See all" link could not navigate correctly — clicking it resulted in an error. |
| Download icon caused errors | The download logo/icon on each video card in the download page was linked directly to the MP4 file; if the file didn't exist, the browser showed an error page. |
| LRT links were not clickable | "Learning Resource Types" tags on the home and download pages were plain text, not links. |
- Removed the VideoJS iframe from all 26 lecture pages.
- Added two buttons to each video:
- ▶ Watch on YouTube → opens in a new tab with
target="_blank", no Error 153. - ⬇ Watch Offline (MP4) → plays the downloaded MP4 directly in the browser.
- ▶ Watch on YouTube → opens in a new tab with
- Removed all "See all" buttons — all content is now shown on one page.
- Added 46 missing items across 6 categories, sorted in correct order.
- "Learning Resource Types" tags are now anchor links to the relevant sections.
- Video thumbnails fixed: direct MP4 link → resource page link (no error if MP4 is missing).
pages/video-help/index.htmlrebuilt with the full MIT OCW layout.- Contains bilingual (TR/EN) step-by-step instructions for online and offline viewing.
- "Learning Resource Types" labels on the home page now link to their respective category pages.
Open index.html in your browser.
Click the "▶ Watch on YouTube" button on any lecture page. → Requires internet. No download needed.
Download the videos first (only once):
# Quick download (recommended):
py.exe "Download_Videos_From_MIT"
# High quality (requires FFmpeg):
py.exe "Download_HQ_Videos_From_Youtube.py"After downloading, the "⬇ Watch Offline (MP4)" button on each lecture page becomes active.
📁 Videos are saved to:
courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/
pip install -r requirements.txtrequirements.txt: requests, tqdm, beautifulsoup4, yt-dlp
| Method | Details |
|---|---|
| System install | Verify with ffmpeg -version in terminal |
| Portable | Copy binaries to ffmpeg/bin/ffmpeg.exe in project root |
The MANUAL_FFMPEG_PATH variable in the HQ download script controls FFmpeg detection:
# Default (portable, project folder):
MANUAL_FFMPEG_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "ffmpeg", "bin")
# Custom path (override):
# MANUAL_FFMPEG_PATH = r"C:\Your\Custom\Path\ffmpeg\bin"