ENDEDemo vereinbaren
← Zurück zu allen Aufgaben

Anwendungsübergreifende Abläufe

I want to learn python programming and my friend recommends me this course website. I have grabbed the lecture slide for week 0. Please download the PDFs for other weeks into the opened folder and leave the file name as-it-is.

Aufgabe und Verlauf liegen im englischen Original vor.

Ergebnis
Gelöst
Punkte
1 / 1
Schritte
6
Dauer
6 min 57 s

Bewertungskriterien

  • Checks that the archive contains the same files with the same content as the expected archive.
Aufgabendefinition im OSWorld-Repository ansehen

Abschließende Antwort

Done! I've downloaded all 9 lecture slide PDFs (weeks 1-9) into ~/lecture_slides/. The folder now contains lecture0.pdf through lecture9.pdf, all named as-is from the course website.

Verlauf

  1. Schritt 10:01

    I need to understand the task: download lecture slide PDFs for all weeks (other than week 0, which is already present as lecture0.pdf) into the open folder ~/lecture_slides, keeping original file names. The course is CS50P (CS50's Introduction to Programming with Python) — the browser tab shows 'Week 0 Functions - CS50' and the video title is 'Functions, Variables'. I'm in plan-first phase, so I can only use observation tools. Let me investigate the course website to find the lecture slide PDFs and their exact URLs/file names. I'll start with a web search to understand the structure.

    • WebsucheCS50P Introduction to Programming with Python lecture slides PDF each week
  2. Schritt 21:01

    I need to find the lecture slide PDF URLs for weeks 1-9 of CS50P. The course website is cs50.harvard.edu/python. Let me fetch the course page to find the PDF download links for each week's lecture slides.

    • Webseite abgerufenhttps://cs50.harvard.edu/python/weeks/1
  3. Schritt 31:52

    I can now see the URL pattern for all lecture PDFs. I need to download weeks 1-9 to ~/lecture_slides/. The existing file is lecture0.pdf, so I'll use curl to download lecture1.pdf through lecture9.pdf.

    • Plan erstellt
      1. Download lecture PDFs for weeks 1-9 to ~/lecture_slides/
  4. Schritt 42:12

    I now know the URL pattern for each week's PDF. I need to commit the plan and then use curl to download all 9 PDFs (weeks 1-9) into ~/lecture_slides/ with the correct filenames (lecture1.pdf through lecture9.pdf).

    • Plan bestätigt1 Teilziele
  5. Schritt 52:37

    I now have the URL pattern for all lecture PDFs. I need to download weeks 1-9 to ~/lecture_slides/. I'll use curl in a loop to download all 9 files.

    • Shell-Befehlfor i in $(seq 1 9); do curl -sL -o ~/lecture_slides/lecture${i}.pdf "https://cdn.cs50.net/python/2022/x/lectures/${i}/lecture${i}.pdf"; done && ls ~/lecture_slides/
  6. Schritt 63:18

    The task is complete. The user asked to download PDFs for weeks 1-9 into the opened folder (~/lecture_slides/) with filenames as-is. The shell command successfully downloaded all 9 files using the CDN URL pattern discovered from the CS50P website. The file manager confirms all 10 files are present.

    • Teilziel erreichtAll 9 lecture PDFs (lecture1.pdf through lecture9.pdf) downloaded to ~/lecture_slides/ using curl with the CDN URL pattern https://cdn.cs50.net/python/2022/x/lectures/N/lectureN.pdf
    • Als abgeschlossen gemeldet