Skip to content

yozdas/mitpythoncourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT OCW 6.100L — Çevrimdışı Kurs Sitesi

MIT OpenCourseWare 6.100L: Introduction to CS and Programming using Python (Fall 2022) Orijinal kaynak: ocw.mit.edu


🇹🇷 Türkçe

Bu Proje Nedir?

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.


❌ MIT'den İndirince Ne Çalışmıyordu?

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.

✅ Yapılan Düzeltmeler

🎬 Video Oynatıcı

  • Tüm 26 ders sayfasındaki VideoJS iframe kaldırıldı.
  • Her videoya iki buton eklendi:
    • ▶ YouTube'da İzletarget="_blank" ile yeni sekmede açılır, Error 153 olmaz.
    • ⬇ Çevrimdışı İzle (MP4) → İndirilen MP4 dosyasını tarayıcıda oynatır.

📋 Kaynak Listeleri (download/index.html)

  • "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).

📄 Video Guide Sayfası

  • pages/video-help/index.html tam 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.

🔗 Linkler

  • Ana sayfadaki "Learning Resource Types" etiketleri ilgili sayfalara linkedlendi.

🚀 Nasıl Kullanılır?

1. Siteyi Aç

index.html dosyasını tarayıcınızda açın.

2. Çevrimiçi İzleme (Önerilen)

Her ders sayfasındaki "▶ YouTube'da İzle" butonuna tıklayın. → İnternet bağlantısı gerekir, indirme gerektirmez.

3. Çevrimdışı İzleme

Ö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/

� Kurulum

pip install -r requirements.txt

requirements.txt içeriği: requests, tqdm, beautifulsoup4, yt-dlp

FFmpeg (Yüksek Kalite için)

Yöntem Açıklama
Sistem kurulumu ffmpeg -version ile kontrol edin
Taşınabilir ffmpeg/bin/ffmpeg.exe konumuna kopyalayın


🇺🇸 English

What Is This Project?

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.


❌ What Was Broken in the Original Download?

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.

✅ Fixes Applied

🎬 Video Player

  • 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.

📋 Resource Lists (download/index.html)

  • 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).

📄 Video Guide Page

  • pages/video-help/index.html rebuilt with the full MIT OCW layout.
  • Contains bilingual (TR/EN) step-by-step instructions for online and offline viewing.

� Links

  • "Learning Resource Types" labels on the home page now link to their respective category pages.

🚀 How to Use

1. Open the Site

Open index.html in your browser.

2. Online Watching (Recommended)

Click the "▶ Watch on YouTube" button on any lecture page. → Requires internet. No download needed.

3. Offline Watching

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/

📦 Installation

pip install -r requirements.txt

requirements.txt: requests, tqdm, beautifulsoup4, yt-dlp

FFmpeg (for High Quality)

Method Details
System install Verify with ffmpeg -version in terminal
Portable Copy binaries to ffmpeg/bin/ffmpeg.exe in project root

⚙️ Script Configuration

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors