Skip to main content
PacketMentor logo
Open menu
← All automation labs
Automation & Programmability Lab · Foundational ~6 min · 10 objectives · CCNA Automation 2.9

Python requests: first script

Real Python REPL in your browser. import requests, hit a demo API with GET and POST, use auth tuple and keyword headers, read status codes and parse JSON. Variables persist across the whole REPL session.

Hands-on lab · real engine

requests.get, requests.post, auth, json kwarg

0 / 10

Pre-seeded demo API: GET /devices, POST /devices/new (requires correct JSON body), GET /secure (requires basic auth).

you@laptop:~$

Stuck on a lab, or not sure what to practice next?

Talk it through with a mentor on a free 20-minute call. We look at your lab, your exam date and your weak spots, and you leave with a plan.

Book a free session