Beaufitul Soup
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
Retrieving Information from the Web with BeautifulSoup
So far, our programs have mostly worked with information that we write ourselves.
Now we're going to make our Python program read information from a website.
For this, we'll use two libraries:
requests- to download a webpageBeautifulSoup- to understand and extract information from the HTML
Our goal is simple:
Give Python a URL → download the webpage → extract useful information from it.
1. Install the Libraries
We need two libraries:
pip install requests beautifulsoup4Then import them:
import requests
from bs4 import BeautifulSoupimport requests
from bs4 import BeautifulSoup2. Download a Webpage
Let's start by downloading a webpage.
import requests
url = "https://cookiesensei.com"
response = requests.get(url)
print(response)You should see something similar to:
<Response [200]>The number 200 is an HTTP status code.
It means:
The request was successful.
We can also look at the actual webpage that was downloaded:
print(response.text)This will produce a lot of text.
You might see things such as:
<html>
<head>
<title>CookieSensei</title>
</head>
<body>
<h1>Learn by Building</h1>
<p>Build software. Learn by doing.</p>
</body>
</html>This is HTML.
url = "https://cookiesensei.com"
response = requests.get(url)
print(response)<Response [200]>
3. What is HTML?
HTML is the language used to structure webpages.
For example:
<h1>Hello</h1>means that Hello is a heading.
And:
<p>Hello world!</p>means that Hello world! is a paragraph.
A webpage is essentially a tree of HTML elements.
For example:
html
├── head
│ └── title
│
└── body
├── h1
├── p
└── pWhen we download a webpage with requests, Python receives this HTML.
Now we need a way to work with it.
That's where BeautifulSoup comes in.
4. Create a BeautifulSoup Object
Let's give the HTML to BeautifulSoup:
import requests
from bs4 import BeautifulSoup
url = "https://cookiesensei.com"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")Now represents the webpage in a form that Python can search and explore.
soup = BeautifulSoup(response.text, "html.parser")
print(soup)<!DOCTYPE html>
<!--fBfqk6dKkUFcZ5VB5RfQ1--><html lang="en"><head><meta charset="utf-8"/><meta content="width=device-width, initial-scale=1" name="viewport"/><link data-precedence="next" href="/_next/static/chunks/72f7b33ed835265f.css" rel="stylesheet"/><link as="script" fetchpriority="low" href="/_next/static/chunks/40b0f83750756eae.js" rel="preload"/><script async="" src="/_next/static/chunks/e34971f2b303ab4d.js"></script><script async="" src="/_next/static/chunks/aee6c7720838f8a2.js"></script><script async="" src="/_next/static/chunks/068649e8eb29b8d9.js"></script><script async="" src="/_next/static/chunks/82abf2d65f5428ae.js"></script><script async="" src="/_next/static/chunks/turbopack-52f2ad32843bb217.js"></script><script async="" src="/_next/static/chunks/52acae8f3cf85da0.js"></script><script async="" src="/_next/static/chunks/ff1a16fafef87110.js"></script><script async="" src="/_next/static/chunks/d2be314c3ece3fbe.js"></script><script async="" src="/_next/static/chunks/bac67eca0cd88ab2.js"></script><title>CookieSensei</title><meta content="Build AI Without Setup Headaches" name="description"/><link href="/favicon.ico?favicon.05e910d9.ico" rel="icon" sizes="1254x1254" type="image/x-icon"/><script nomodule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script></head><body class="bg-slate-950 text-white overflow-x-hidden"><div hidden=""><!--$--><!--/$--></div><header class="sticky top-0 z-40 flex w-full items-center justify-between bg-[#0b1220]/70 px-4 py-4 backdrop-blur md:px-10"><a href="/"><h1 class="cursor-pointer text-lg font-bold transition hover:text-blue-400 md:text-xl">CookieSensei</h1></a><nav class="hidden items-center gap-6 md:flex"><a class="transition hover:text-blue-400" href="/about">About</a><a class="transition hover:text-blue-400" href="/approach">Our Approach</a><a class="transition hover:text-blue-400" href="/curriculum">Curriculum</a><a class="transition hover:text-blue-400" href="/workshops">Workshops</a><a class="transition hover:text-blue-400" href="/internship">Internship</a><a class="transition hover:text-blue-400" href="/contact">Contact</a><a class="transition hover:text-blue-400" href="/faq">FAQ</a><a class="rounded-lg bg-blue-500 px-4 py-2 text-white transition hover:bg-blue-600" href="https://code.cookiesensei.com">Launch Lab</a></nav><button class="z-50 text-3xl md:hidden">☰</button></header><div class="fixed left-0 top-0 z-50 h-full w-64 transform border-r border-slate-700 bg-slate-900 shadow-xl transition-transform duration-300 md:hidden -translate-x-full"><div class="mt-10 flex flex-col gap-6 p-6"><a class="text-lg font-bold transition hover:text-blue-400" href="/">CookieSensei</a><a class="text-lg transition hover:text-blue-400" href="/about">About</a><a class="text-lg transition hover:text-blue-400" href="/approach">Our Approach</a><a class="text-lg transition hover:text-blue-400" href="/curriculum">Curriculum</a><a class="text-lg transition hover:text-blue-400" href="/workshops">Workshops</a><a class="text-lg transition hover:text-blue-400" href="/internship">Internship</a><a class="text-lg transition hover:text-blue-400" href="/contact">Contact</a><a class="text-lg transition hover:text-blue-400" href="/faq">FAQ</a><a class="w-fit rounded-lg bg-blue-500 px-4 py-2 text-white transition-colors hover:bg-blue-600" href="https://code.cookiesensei.com">Launch Lab</a></div></div><main class="bg-slate-950 text-white"><section class="min-h-screen flex items-center justify-center px-6"><div class="max-w-5xl mx-auto text-center"><p class="uppercase tracking-[0.35em] text-blue-400 font-medium">Learn to Build with</p><h1 class="mt-6 text-5xl md:text-7xl font-bold leading-tight">Programming and AI</h1><p class="mt-8 text-xl text-slate-300 leading-relaxed max-w-3xl mx-auto">A guided learning program that helps curious learners turn ideas into real software through live instruction, Artificial Intelligence, and practical projects.</p><div class="mt-12 space-y-3 text-lg text-slate-300"><p>✓ Beginner Friendly</p><p>✓ Browser-Based Cloud Labs</p><p>✓ Phase-Based Learning</p><p>✓ Live Instructor Guidance</p></div><div class="mt-20 animate-bounce text-gray-500 text-3xl"><button class="group mt-16 mx-auto flex flex-col items-center"><span class="text-sm tracking-wide text-slate-400 transition group-hover:text-white">Explore the Program</span><svg class="mt-2 h-8 w-8 animate-bounce text-blue-400" fill="none" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24"><path d="M19 9l-7 7-7-7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button></div></div></section><section class="py-32 px-6 scroll-mt-24" id="what-is-cookiesensei"><div class="max-w-4xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">What is CookieSensei?</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">Learning Programming and AI shouldn't begin with installation problems.</h2><div class="mt-10 space-y-8 text-xl text-slate-300 leading-relaxed"><p>CookieSensei is a Programming and AI learning program designed to help beginners build confidence through live instruction, browser-based Cloud Labs, and structured learning phases.</p><div class="pt-6 space-y-3"><p class="text-2xl font-semibold text-white">It's not about finishing quickly.</p><p class="text-2xl font-semibold text-blue-400">It's about learning well.</p></div></div></div></section><section class="py-32 px-6"><div class="max-w-5xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Programming and AI Program</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">A structured learning journey<br/>designed for curious learners.</h2><div class="mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16"><div class="text-center"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Founding Cohort</p><h3 class="mt-4 text-5xl font-bold text-white">₹24,999</h3></div><div class="mt-16 flex flex-col items-center space-y-4 text-center"><p class="text-xl font-medium">Programming in Python</p><span class="text-slate-500 text-2xl">↓</span><p class="text-xl font-medium">Git & GitHub</p><span class="text-slate-500 text-2xl">↓</span><p class="text-xl font-medium">Data Science</p><span class="text-slate-500 text-2xl">↓</span><p class="text-xl font-medium">Artificial Intelligence</p><span class="text-slate-500 text-2xl">↓</span><p class="text-xl font-medium">Real-World Projects</p><span class="text-slate-500 text-2xl">↓</span><p class="text-2xl font-semibold text-blue-400">From Idea to Software</p></div><div class="mt-16 border-t border-slate-800 pt-12 text-center space-y-6"><p class="text-xl text-slate-300">The Programming and AI Program is designed to be completed over approximately<!-- --> <span class="font-semibold text-white">6-8 months</span>, with flexibility to learn at your own pace.</p></div><div class="mt-16 border-t border-slate-800 pt-12"><p class="max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed">We're inviting a small group of<!-- --> <span class="font-semibold text-white">15 learners</span> to become the founding cohort of the CookieSensei Programming and AI Program.</p><p class="mt-8 max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed">With only 15 learners, you'll receive personal guidance, live interaction, and individual attention throughout your journey.</p></div><div class="mt-16 text-center"><a class="inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400" href="/curriculum">Explore Curriculum</a></div></div></div></section><section class="py-32 px-6"><div class="max-w-5xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Learning Through Phases</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">Learning isn't measured by weeks.<br/>It's measured by understanding.</h2><p class="mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed">Every learner progresses through a structured series of learning phases. Each phase builds naturally on the previous one, helping you develop the skills and confidence to build real software.</p><div class="mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16"><div class="flex flex-col items-center"><div class="w-full max-w-2xl text-center"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Phase 1</p><h3 class="mt-2 text-2xl md:text-3xl font-semibold text-white">Thinking Like a Programmer</h3><p class="mt-3 text-slate-400 leading-relaxed">Learn to solve problems by thinking like a programmer.</p><div class="py-8 text-2xl text-slate-600">↓</div></div><div class="w-full max-w-2xl text-center"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Phase 2</p><h3 class="mt-2 text-2xl md:text-3xl font-semibold text-white">Building Software</h3><p class="mt-3 text-slate-400 leading-relaxed">Turn ideas into working software through practical projects.</p><div class="py-8 text-2xl text-slate-600">↓</div></div><div class="w-full max-w-2xl text-center"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Phase 3</p><h3 class="mt-2 text-2xl md:text-3xl font-semibold text-white">Teaching Computers to Learn</h3><p class="mt-3 text-slate-400 leading-relaxed">Discover how machines learn patterns from data instead of following fixed rules.</p><div class="py-8 text-2xl text-slate-600">↓</div></div><div class="w-full max-w-2xl text-center"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Phase 4</p><h3 class="mt-2 text-2xl md:text-3xl font-semibold text-white">Building Intelligent Systems</h3><p class="mt-3 text-slate-400 leading-relaxed">Combine programming and AI to build useful intelligent applications.</p><div class="py-8 text-2xl text-slate-600">↓</div></div><div class="w-full max-w-2xl text-center"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Phase 5</p><h3 class="mt-2 text-2xl md:text-3xl font-semibold text-white">Building for the Real World</h3><p class="mt-3 text-slate-400 leading-relaxed">Build software collaboratively using modern AI tools and professional engineering workflows.</p></div></div><div class="mt-16 border-t border-slate-800 pt-12"><p class="max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed">Every phase builds on the one before it, helping learners develop confidence through consistent progress rather than rushing toward completion.</p></div><div class="mt-12 text-center"><a class="inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400" href="/curriculum">Explore Curriculum</a></div></div></div></section><section class="py-32 px-6"><div class="max-w-5xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Our Approach</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">Learning happens by building, experimenting, and understanding.</h2><div class="mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16"><div class="space-y-6"><div class="flex items-start gap-4 text-lg"><span class="text-blue-400 text-xl">✓</span><span>Live instructor-led sessions</span></div><div class="flex items-start gap-4 text-lg"><span class="text-blue-400 text-xl">✓</span><span>Browser-based Cloud Labs</span></div><div class="flex items-start gap-4 text-lg"><span class="text-blue-400 text-xl">✓</span><span>Learn concepts, not memorization</span></div><div class="flex items-start gap-4 text-lg"><span class="text-blue-400 text-xl">✓</span><span>Build real software throughout the program</span></div><div class="flex items-start gap-4 text-lg"><span class="text-blue-400 text-xl">✓</span><span>AI as a learning companion, not a shortcut</span></div></div><div class="mt-16 border-t border-slate-800 pt-12"><p class="max-w-3xl text-lg text-slate-300 leading-relaxed">We believe confidence grows through curiosity, experimentation, and consistent practice, not by memorizing syntax or following tutorials.</p></div><div class="mt-12"><a class="inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400" href="/approach">Explore Our Approach</a></div></div></div></section><section class="py-32 px-6"><div class="max-w-5xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Cloud Labs</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">Learning should begin with curiosity, not installation.</h2><p class="mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed">Every learner starts with the same ready-to-use development environment, making it easy to focus on learning instead of setting up software.</p><div class="mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16"><div class="flex flex-col items-center"><div class="w-full text-center"><p class="text-2xl font-medium text-white">Open your browser</p><div class="py-6 text-2xl text-slate-500">↓</div></div><div class="w-full text-center"><p class="text-2xl font-medium text-white">Join the live session</p><div class="py-6 text-2xl text-slate-500">↓</div></div><div class="w-full text-center"><p class="text-2xl font-medium text-white">Write code instantly</p><div class="py-6 text-2xl text-slate-500">↓</div></div><div class="w-full text-center"><p class="text-2xl font-medium text-white">Build projects</p><div class="py-6 text-2xl text-slate-500">↓</div></div><div class="w-full text-center"><p class="text-2xl font-medium text-white">Continue learning anywhere</p></div></div><div class="mt-16 border-t border-slate-800 pt-12"><p class="max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed">Cloud Labs provides a consistent, browser-based development environment for every learner, eliminating installation problems and allowing everyone to learn together from day one.</p><div class="mt-8 text-center space-y-2"><p class="font-medium text-white">No installations.</p><p class="font-medium text-white">No compatibility issues.</p><p class="text-xl font-semibold text-blue-400">Just learning.</p></div></div></div></div></section><section class="py-32 px-6"><div class="max-w-6xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Who It's For</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">Whether you're starting your journey, changing direction, or building new skills.</h2><p class="mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed">CookieSensei is designed for curious learners who want to understand technology by building with it-not just watching tutorials.</p><div class="mt-16 grid gap-8 md:grid-cols-3"><div class="rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Students</p><p class="mt-6 text-slate-300 leading-relaxed">Build strong programming and Artificial Intelligence foundations before entering the industry.</p></div><div class="rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Professionals</p><p class="mt-6 text-slate-300 leading-relaxed">Develop modern software development and AI skills while continuing your career.</p></div><div class="rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10"><p class="uppercase tracking-[0.2em] text-blue-400 text-sm">Creators</p><p class="mt-6 text-slate-300 leading-relaxed">Turn ideas into real software, intelligent applications, and practical projects.</p></div></div><div class="mt-16 text-center"><p class="text-xl text-slate-300">Everyone starts somewhere.</p><p class="mt-3 text-2xl font-semibold text-blue-400">The only requirement is curiosity.</p></div></div></section><section class="py-32 px-6"><div class="max-w-5xl mx-auto"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Workshop</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">Not ready to join the full program?</h2><p class="mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed">Experience how CookieSensei teaches through a small instructor-led workshop where you'll build and deploy a real project directly from your browser.</p><div class="mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16"><div class="text-center"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">CookieSensei Workshop</p><h3 class="mt-4 text-5xl font-bold text-white">₹499</h3></div><div class="mt-16 flex flex-col items-center space-y-4 text-center"><div class="w-full"><p class="text-2xl font-medium text-white">Idea</p><div class="py-5 text-2xl text-slate-600">↓</div></div><div class="w-full"><p class="text-2xl font-medium text-white">Build</p><div class="py-5 text-2xl text-slate-600">↓</div></div><div class="w-full"><p class="text-2xl font-medium text-white">Deploy</p><div class="py-5 text-2xl text-slate-600">↓</div></div><div class="w-full"><p class="text-2xl font-medium text-blue-400 font-semibold">Share</p></div></div><div class="mt-16 border-t border-slate-800 pt-12"><p class="text-center text-lg text-slate-300 leading-relaxed max-w-2xl mx-auto">One workshop.<br/>One complete project.<br/>One practical introduction to the CookieSensei learning experience.</p></div><div class="mt-12 text-center"><a class="inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400" href="/workshops">Explore Workshops</a></div></div></div></section><section class="py-32 px-6"><div class="max-w-4xl mx-auto text-center"><p class="uppercase tracking-[0.3em] text-blue-400 font-medium">Ready to Build?</p><h2 class="mt-6 text-4xl md:text-6xl font-bold leading-tight">We'd love to hear from you.</h2><p class="mt-8 max-w-2xl mx-auto text-xl text-slate-300 leading-relaxed">Whether you're curious about the Programming and AI Program, want to attend a Workshop, or simply have questions, we're here to help.</p><div class="mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16"><div class="max-w-2xl mx-auto text-center"><h3 class="text-2xl font-semibold">Interested in the Programming and AI Program?</h3><p class="mt-6 text-lg text-slate-300 leading-relaxed">Tell us a little about yourself, what you'd like to learn, and what you're hoping to build.</p><p class="mt-4 text-lg text-slate-300 leading-relaxed">We'll personally reach out to answer your questions and see if CookieSensei is the right fit for you.</p><a class="mt-10 inline-flex items-center rounded-xl bg-blue-500 px-8 py-4 font-semibold text-white transition-all duration-300 hover:bg-blue-600" href="/contact">Start the Conversation</a></div></div></div></section></main><!--$--><!--/$--><footer class="text-center py-10 border-t border-white/10 text-gray-500 space-x-4"><a href="/privacy-policy">Privacy Policy</a><a href="/terms">Terms</a><a href="/refund-policy">Refund Policy</a><a href="/contact">Contact</a><div class="mt-4">© 2026 CookieSensei Labs. Build. Learn. Contribute.</div></footer><script async="" id="_R_" src="/_next/static/chunks/40b0f83750756eae.js"></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2358,[\"/_next/static/chunks/52acae8f3cf85da0.js\"],\"default\"]\n3:I[39756,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/d2be314c3ece3fbe.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/d2be314c3ece3fbe.js\"],\"default\"]\n5:I[81944,[\"/_next/static/chunks/52acae8f3cf85da0.js\",\"/_next/static/chunks/bac67eca0cd88ab2.js\"],\"default\"]\n17:I[68027,[],\"default\"]\n:HL[\"/_next/static/chunks/72f7b33ed835265f.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"fBfqk6dKkUFcZ5VB5RfQ1\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/72f7b33ed835265f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/52acae8f3cf85da0.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"bg-slate-950 text-white overflow-x-hidden\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"main\",null,{\"className\":\"bg-slate-950 text-white\",\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"section\",null,{\"id\":\"what-is-cookiesensei\",\"className\":\"py-32 px-6 scroll-mt-24\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-4xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"What is CookieSensei?\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":\"Learning Programming and AI shouldn't begin with installation problems.\"}],[\"$\",\"div\",null,{\"className\":\"mt-10 space-y-8 text-xl text-slate-300 leading-relaxed\",\"children\":[[\"$\",\"p\",null,{\"children\":\"CookieSensei is a Programming and AI learning program designed to help beginners build confidence through live instruction, browser-based Cloud Labs, and structured learning phases.\"}],[\"$\",\"div\",null,{\"className\":\"pt-6 space-y-3\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-semibold text-white\",\"children\":\"It's not about finishing quickly.\"}],[\"$\",\"p\",null,{\"className\":\"text-2xl font-semibold text-blue-400\",\"children\":\"It's about learning well.\"}]]}]]}]]}]}],[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-5xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Programming and AI Program\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":[\"A structured learning journey\",[\"$\",\"br\",null,{}],\"designed for curious learners.\"]}],[\"$\",\"div\",null,{\"className\":\"mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16\",\"children\":[[\"$\",\"div\",null,{\"className\":\"text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Founding Cohort\"}],[\"$\",\"h3\",null,{\"className\":\"mt-4 text-5xl font-bold text-white\",\"children\":\"₹24,999\"}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 flex flex-col items-center space-y-4 text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-xl font-medium\",\"children\":\"Programming in Python\"}],[\"$\",\"span\",null,{\"className\":\"text-slate-500 text-2xl\",\"children\":\"↓\"}],[\"$\",\"p\",null,{\"className\":\"text-xl font-medium\",\"children\":\"Git \u0026 GitHub\"}],[\"$\",\"span\",null,{\"className\":\"text-slate-500 text-2xl\",\"children\":\"↓\"}],[\"$\",\"p\",null,{\"className\":\"text-xl font-medium\",\"children\":\"Data Science\"}],[\"$\",\"span\",null,{\"className\":\"text-slate-500 text-2xl\",\"children\":\"↓\"}],\"$L6\",\"$L7\",\"$L8\",\"$L9\",\"$La\"]}],\"$Lb\",\"$Lc\",\"$Ld\"]}]]}]}],\"$Le\",\"$Lf\",\"$L10\",\"$L11\",\"$L12\",\"$L13\"]}],[\"$L14\"],\"$L15\"]}],{},null,false,false]},null,false,false],\"$L16\",false]],\"m\":\"$undefined\",\"G\":[\"$17\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"18:I[22016,[\"/_next/static/chunks/52acae8f3cf85da0.js\",\"/_next/static/chunks/bac67eca0cd88ab2.js\"],\"\"]\n1a:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/d2be314c3ece3fbe.js\"],\"OutletBoundary\"]\n1b:\"$Sreact.suspense\"\n1d:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/d2be314c3ece3fbe.js\"],\"ViewportBoundary\"]\n1f:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/d2be314c3ece3fbe.js\"],\"MetadataBoundary\"]\n6:[\"$\",\"p\",null,{\"className\":\"text-xl font-medium\",\"children\":\"Artificial Intelligence\"}]\n7:[\"$\",\"span\",null,{\"className\":\"text-slate-500 text-2xl\",\"children\":\"↓\"}]\n8:[\"$\",\"p\",null,{\"className\":\"text-xl font-medium\",\"children\":\"Real-World Projects\"}]\n9:[\"$\",\"span\",null,{\"className\":\"text-slate-500 text-2xl\",\"children\":\"↓\"}]\na:[\"$\",\"p\",null,{\"className\":\"text-2xl font-semibold text-blue-400\",\"children\":\"From Idea to Software\"}]\nb:[\"$\",\"div\",null,{\"className\":\"mt-16 border-t border-slate-800 pt-12 text-center space-y-6\",\"children\":[\"$\",\"p\",null,{\"className\":\"text-xl text-slate-300\",\"children\":[\"The Programming and AI Program is designed to be completed over approximately\",\" \",[\"$\",\"span\",null,{\"className\":\"font-semibold text-white\",\"children\":\"6-8 months\"}],\", with flexibility to learn at your own pace.\"]}]}]\nc:[\"$\",\"div\",null,{\"className\":\"mt-16 border-t border-slate-800 pt-12\",\"children\":[[\"$\",\"p\",null,{\"className\":\"max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed\",\"children\":[\"We're inviting a small group of\",\" \",[\"$\",\"span\",null,{\"className\":\"font-semibold text-white\",\"children\":\"15 learners\"}],\" to become the founding cohort of the CookieSensei Programming and AI Program.\"]}],[\"$\",\"p\",null,{\"className\":\"mt-8 max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed\",\"children\":\"With only 15 learners, you'll receive personal guidance, live interaction, and individual attention throughout your journey.\"}]]}]\nd:[\"$\",\"div\",null,{\"className\":\"mt-16 text-center\",\"children\":[\"$\",\"$L18\",null,{\"href\":\"/curriculum\",\"className\":\"inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400\",\"children\":\"Explore Curriculum\"}]}]\n"])</script><script>self.__next_f.push([1,"e:[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-5xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Learning Through Phases\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":[\"Learning isn't measured by weeks.\",[\"$\",\"br\",null,{}],\"It's measured by understanding.\"]}],[\"$\",\"p\",null,{\"className\":\"mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed\",\"children\":\"Every learner progresses through a structured series of learning phases. Each phase builds naturally on the previous one, helping you develop the skills and confidence to build real software.\"}],[\"$\",\"div\",null,{\"className\":\"mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex flex-col items-center\",\"children\":[[\"$\",\"div\",\"thinking-like-a-programmer\",{\"className\":\"w-full max-w-2xl text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Phase 1\"}],[\"$\",\"h3\",null,{\"className\":\"mt-2 text-2xl md:text-3xl font-semibold text-white\",\"children\":\"Thinking Like a Programmer\"}],[\"$\",\"p\",null,{\"className\":\"mt-3 text-slate-400 leading-relaxed\",\"children\":\"Learn to solve problems by thinking like a programmer.\"}],[\"$\",\"div\",null,{\"className\":\"py-8 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"building-software\",{\"className\":\"w-full max-w-2xl text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Phase 2\"}],[\"$\",\"h3\",null,{\"className\":\"mt-2 text-2xl md:text-3xl font-semibold text-white\",\"children\":\"Building Software\"}],[\"$\",\"p\",null,{\"className\":\"mt-3 text-slate-400 leading-relaxed\",\"children\":\"Turn ideas into working software through practical projects.\"}],[\"$\",\"div\",null,{\"className\":\"py-8 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"teaching-computers-to-learn\",{\"className\":\"w-full max-w-2xl text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Phase 3\"}],[\"$\",\"h3\",null,{\"className\":\"mt-2 text-2xl md:text-3xl font-semibold text-white\",\"children\":\"Teaching Computers to Learn\"}],[\"$\",\"p\",null,{\"className\":\"mt-3 text-slate-400 leading-relaxed\",\"children\":\"Discover how machines learn patterns from data instead of following fixed rules.\"}],[\"$\",\"div\",null,{\"className\":\"py-8 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"building-intelligent-systems\",{\"className\":\"w-full max-w-2xl text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Phase 4\"}],[\"$\",\"h3\",null,{\"className\":\"mt-2 text-2xl md:text-3xl font-semibold text-white\",\"children\":\"Building Intelligent Systems\"}],[\"$\",\"p\",null,{\"className\":\"mt-3 text-slate-400 leading-relaxed\",\"children\":\"Combine programming and AI to build useful intelligent applications.\"}],[\"$\",\"div\",null,{\"className\":\"py-8 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"building-for-the-real-world\",{\"className\":\"w-full max-w-2xl text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Phase 5\"}],[\"$\",\"h3\",null,{\"className\":\"mt-2 text-2xl md:text-3xl font-semibold text-white\",\"children\":\"Building for the Real World\"}],[\"$\",\"p\",null,{\"className\":\"mt-3 text-slate-400 leading-relaxed\",\"children\":\"Build software collaboratively using modern AI tools and professional engineering workflows.\"}],false]}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 border-t border-slate-800 pt-12\",\"children\":[\"$\",\"p\",null,{\"className\":\"max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed\",\"children\":\"Every phase builds on the one before it, helping learners develop confidence through consistent progress rather than rushing toward completion.\"}]}],[\"$\",\"div\",null,{\"className\":\"mt-12 text-center\",\"children\":\"$L19\"}]]}]]}]}]\n"])</script><script>self.__next_f.push([1,"f:[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-5xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Our Approach\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":\"Learning happens by building, experimenting, and understanding.\"}],[\"$\",\"div\",null,{\"className\":\"mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16\",\"children\":[[\"$\",\"div\",null,{\"className\":\"space-y-6\",\"children\":[[\"$\",\"div\",\"Live instructor-led sessions\",{\"className\":\"flex items-start gap-4 text-lg\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-blue-400 text-xl\",\"children\":\"✓\"}],[\"$\",\"span\",null,{\"children\":\"Live instructor-led sessions\"}]]}],[\"$\",\"div\",\"Browser-based Cloud Labs\",{\"className\":\"flex items-start gap-4 text-lg\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-blue-400 text-xl\",\"children\":\"✓\"}],[\"$\",\"span\",null,{\"children\":\"Browser-based Cloud Labs\"}]]}],[\"$\",\"div\",\"Learn concepts, not memorization\",{\"className\":\"flex items-start gap-4 text-lg\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-blue-400 text-xl\",\"children\":\"✓\"}],[\"$\",\"span\",null,{\"children\":\"Learn concepts, not memorization\"}]]}],[\"$\",\"div\",\"Build real software throughout the program\",{\"className\":\"flex items-start gap-4 text-lg\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-blue-400 text-xl\",\"children\":\"✓\"}],[\"$\",\"span\",null,{\"children\":\"Build real software throughout the program\"}]]}],[\"$\",\"div\",\"AI as a learning companion, not a shortcut\",{\"className\":\"flex items-start gap-4 text-lg\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-blue-400 text-xl\",\"children\":\"✓\"}],[\"$\",\"span\",null,{\"children\":\"AI as a learning companion, not a shortcut\"}]]}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 border-t border-slate-800 pt-12\",\"children\":[\"$\",\"p\",null,{\"className\":\"max-w-3xl text-lg text-slate-300 leading-relaxed\",\"children\":\"We believe confidence grows through curiosity, experimentation, and consistent practice, not by memorizing syntax or following tutorials.\"}]}],[\"$\",\"div\",null,{\"className\":\"mt-12\",\"children\":[\"$\",\"$L18\",null,{\"href\":\"/approach\",\"className\":\"inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400\",\"children\":\"Explore Our Approach\"}]}]]}]]}]}]\n"])</script><script>self.__next_f.push([1,"10:[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-5xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Cloud Labs\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":\"Learning should begin with curiosity, not installation.\"}],[\"$\",\"p\",null,{\"className\":\"mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed\",\"children\":\"Every learner starts with the same ready-to-use development environment, making it easy to focus on learning instead of setting up software.\"}],[\"$\",\"div\",null,{\"className\":\"mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex flex-col items-center\",\"children\":[[\"$\",\"div\",\"Open your browser\",{\"className\":\"w-full text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Open your browser\"}],[\"$\",\"div\",null,{\"className\":\"py-6 text-2xl text-slate-500\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Join the live session\",{\"className\":\"w-full text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Join the live session\"}],[\"$\",\"div\",null,{\"className\":\"py-6 text-2xl text-slate-500\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Write code instantly\",{\"className\":\"w-full text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Write code instantly\"}],[\"$\",\"div\",null,{\"className\":\"py-6 text-2xl text-slate-500\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Build projects\",{\"className\":\"w-full text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Build projects\"}],[\"$\",\"div\",null,{\"className\":\"py-6 text-2xl text-slate-500\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Continue learning anywhere\",{\"className\":\"w-full text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Continue learning anywhere\"}],false]}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 border-t border-slate-800 pt-12\",\"children\":[[\"$\",\"p\",null,{\"className\":\"max-w-3xl mx-auto text-center text-lg text-slate-300 leading-relaxed\",\"children\":\"Cloud Labs provides a consistent, browser-based development environment for every learner, eliminating installation problems and allowing everyone to learn together from day one.\"}],[\"$\",\"div\",null,{\"className\":\"mt-8 text-center space-y-2\",\"children\":[[\"$\",\"p\",null,{\"className\":\"font-medium text-white\",\"children\":\"No installations.\"}],[\"$\",\"p\",null,{\"className\":\"font-medium text-white\",\"children\":\"No compatibility issues.\"}],[\"$\",\"p\",null,{\"className\":\"text-xl font-semibold text-blue-400\",\"children\":\"Just learning.\"}]]}]]}]]}]]}]}]\n"])</script><script>self.__next_f.push([1,"11:[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-6xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Who It's For\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":\"Whether you're starting your journey, changing direction, or building new skills.\"}],[\"$\",\"p\",null,{\"className\":\"mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed\",\"children\":\"CookieSensei is designed for curious learners who want to understand technology by building with it-not just watching tutorials.\"}],[\"$\",\"div\",null,{\"className\":\"mt-16 grid gap-8 md:grid-cols-3\",\"children\":[[\"$\",\"div\",\"Students\",{\"className\":\"rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Students\"}],[\"$\",\"p\",null,{\"className\":\"mt-6 text-slate-300 leading-relaxed\",\"children\":\"Build strong programming and Artificial Intelligence foundations before entering the industry.\"}]]}],[\"$\",\"div\",\"Professionals\",{\"className\":\"rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Professionals\"}],[\"$\",\"p\",null,{\"className\":\"mt-6 text-slate-300 leading-relaxed\",\"children\":\"Develop modern software development and AI skills while continuing your career.\"}]]}],[\"$\",\"div\",\"Creators\",{\"className\":\"rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.2em] text-blue-400 text-sm\",\"children\":\"Creators\"}],[\"$\",\"p\",null,{\"className\":\"mt-6 text-slate-300 leading-relaxed\",\"children\":\"Turn ideas into real software, intelligent applications, and practical projects.\"}]]}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-xl text-slate-300\",\"children\":\"Everyone starts somewhere.\"}],[\"$\",\"p\",null,{\"className\":\"mt-3 text-2xl font-semibold text-blue-400\",\"children\":\"The only requirement is curiosity.\"}]]}]]}]}]\n"])</script><script>self.__next_f.push([1,"12:[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-5xl mx-auto\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Workshop\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":\"Not ready to join the full program?\"}],[\"$\",\"p\",null,{\"className\":\"mt-8 max-w-3xl text-xl text-slate-300 leading-relaxed\",\"children\":\"Experience how CookieSensei teaches through a small instructor-led workshop where you'll build and deploy a real project directly from your browser.\"}],[\"$\",\"div\",null,{\"className\":\"mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16\",\"children\":[[\"$\",\"div\",null,{\"className\":\"text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"CookieSensei Workshop\"}],[\"$\",\"h3\",null,{\"className\":\"mt-4 text-5xl font-bold text-white\",\"children\":\"₹499\"}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 flex flex-col items-center space-y-4 text-center\",\"children\":[[\"$\",\"div\",\"Idea\",{\"className\":\"w-full\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Idea\"}],[\"$\",\"div\",null,{\"className\":\"py-5 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Build\",{\"className\":\"w-full\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Build\"}],[\"$\",\"div\",null,{\"className\":\"py-5 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Deploy\",{\"className\":\"w-full\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-white\",\"children\":\"Deploy\"}],[\"$\",\"div\",null,{\"className\":\"py-5 text-2xl text-slate-600\",\"children\":\"↓\"}]]}],[\"$\",\"div\",\"Share\",{\"className\":\"w-full\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-2xl font-medium text-blue-400 font-semibold\",\"children\":\"Share\"}],false]}]]}],[\"$\",\"div\",null,{\"className\":\"mt-16 border-t border-slate-800 pt-12\",\"children\":[\"$\",\"p\",null,{\"className\":\"text-center text-lg text-slate-300 leading-relaxed max-w-2xl mx-auto\",\"children\":[\"One workshop.\",[\"$\",\"br\",null,{}],\"One complete project.\",[\"$\",\"br\",null,{}],\"One practical introduction to the CookieSensei learning experience.\"]}]}],[\"$\",\"div\",null,{\"className\":\"mt-12 text-center\",\"children\":[\"$\",\"$L18\",null,{\"href\":\"/workshops\",\"className\":\"inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400\",\"children\":\"Explore Workshops\"}]}]]}]]}]}]\n"])</script><script>self.__next_f.push([1,"13:[\"$\",\"section\",null,{\"className\":\"py-32 px-6\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-4xl mx-auto text-center\",\"children\":[[\"$\",\"p\",null,{\"className\":\"uppercase tracking-[0.3em] text-blue-400 font-medium\",\"children\":\"Ready to Build?\"}],[\"$\",\"h2\",null,{\"className\":\"mt-6 text-4xl md:text-6xl font-bold leading-tight\",\"children\":\"We'd love to hear from you.\"}],[\"$\",\"p\",null,{\"className\":\"mt-8 max-w-2xl mx-auto text-xl text-slate-300 leading-relaxed\",\"children\":\"Whether you're curious about the Programming and AI Program, want to attend a Workshop, or simply have questions, we're here to help.\"}],[\"$\",\"div\",null,{\"className\":\"mt-16 rounded-3xl border border-slate-800 bg-slate-900/40 backdrop-blur-sm p-10 md:p-16\",\"children\":[\"$\",\"div\",null,{\"className\":\"max-w-2xl mx-auto text-center\",\"children\":[[\"$\",\"h3\",null,{\"className\":\"text-2xl font-semibold\",\"children\":\"Interested in the Programming and AI Program?\"}],[\"$\",\"p\",null,{\"className\":\"mt-6 text-lg text-slate-300 leading-relaxed\",\"children\":\"Tell us a little about yourself, what you'd like to learn, and what you're hoping to build.\"}],[\"$\",\"p\",null,{\"className\":\"mt-4 text-lg text-slate-300 leading-relaxed\",\"children\":\"We'll personally reach out to answer your questions and see if CookieSensei is the right fit for you.\"}],[\"$\",\"$L18\",null,{\"href\":\"/contact\",\"className\":\"mt-10 inline-flex items-center rounded-xl bg-blue-500 px-8 py-4 font-semibold text-white transition-all duration-300 hover:bg-blue-600\",\"children\":\"Start the Conversation\"}]]}]}]]}]}]\n"])</script><script>self.__next_f.push([1,"14:[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/bac67eca0cd88ab2.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n15:[\"$\",\"$L1a\",null,{\"children\":[\"$\",\"$1b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@1c\"}]}]\n16:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L1d\",null,{\"children\":\"$L1e\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L1f\",null,{\"children\":[\"$\",\"$1b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L20\"}]}]}],null]}]\n"])</script><script>self.__next_f.push([1,"19:[\"$\",\"$L18\",null,{\"href\":\"/curriculum\",\"className\":\"inline-flex items-center rounded-xl border border-slate-700 px-8 py-4 font-semibold transition-all duration-300 hover:border-blue-500 hover:text-blue-400\",\"children\":\"Explore Curriculum\"}]\n"])</script><script>self.__next_f.push([1,"1e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"21:I[27201,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/d2be314c3ece3fbe.js\"],\"IconMark\"]\n1c:null\n20:[[\"$\",\"title\",\"0\",{\"children\":\"CookieSensei\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Build AI Without Setup Headaches\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.05e910d9.ico\",\"sizes\":\"1254x1254\",\"type\":\"image/x-icon\"}],[\"$\",\"$L21\",\"3\",{}]]\n"])</script></body></html>
5. Find the Page Title
Let's retrieve the title of the webpage.
title = soup.title
print(title)You might get:
<title>CookieSensei</title>If we only want the text inside the title:
print(soup.title.text)Now we get:
CookieSenseititle = soup.title
print(title)<title>CookieSensei</title>
6. Find a Heading
We can search for HTML elements by their tag.
For example:
heading = soup.find("h1")
print(heading)If the webpage contains:
<h1>Learn by Building</h1>we'll get:
<h1>Learn by Building</h1>To get only the text:
print(heading.text)Output:
Learn by Buildingheading = soup.find("h1")
print(heading)
<h1 class="cursor-pointer text-lg font-bold transition hover:text-blue-400 md:text-xl">CookieSensei</h1>
print(heading.text)CookieSensei
7. Find a Paragraph
We can do the same thing with paragraphs:
paragraph = soup.find("p")
print(paragraph.text)This gives us the text inside the first <p> element.
paragraph = soup.find("p")
print(paragraph.text)Learn to Build with
8. Find All Elements
Sometimes we don't want just the first paragraph.
We want all paragraphs.
For this, use:
paragraphs = soup.find_all("p")Now paragraphs contains all the paragraph elements.
We can loop through them:
for paragraph in paragraphs:
print(paragraph.text)This is a very common pattern when scraping webpages:
Find all elements
↓
Loop through them
↓
Extract informationparagraphs = soup.find_all("p")
for paragraph in paragraphs:
print(paragraph.text)Learn to Build with
A guided learning program that helps curious learners turn ideas into real software through live instruction, Artificial Intelligence, and practical projects.
✓ Beginner Friendly
✓ Browser-Based Cloud Labs
✓ Phase-Based Learning
✓ Live Instructor Guidance
What is CookieSensei?
CookieSensei is a Programming and AI learning program designed to help beginners build confidence through live instruction, browser-based Cloud Labs, and structured learning phases.
It's not about finishing quickly.
It's about learning well.
Programming and AI Program
Founding Cohort
Programming in Python
Git & GitHub
Data Science
Artificial Intelligence
Real-World Projects
From Idea to Software
The Programming and AI Program is designed to be completed over approximately 6-8 months, with flexibility to learn at your own pace.
We're inviting a small group of 15 learners to become the founding cohort of the CookieSensei Programming and AI Program.
With only 15 learners, you'll receive personal guidance, live interaction, and individual attention throughout your journey.
Learning Through Phases
Every learner progresses through a structured series of learning phases. Each phase builds naturally on the previous one, helping you develop the skills and confidence to build real software.
Phase 1
Learn to solve problems by thinking like a programmer.
Phase 2
Turn ideas into working software through practical projects.
Phase 3
Discover how machines learn patterns from data instead of following fixed rules.
Phase 4
Combine programming and AI to build useful intelligent applications.
Phase 5
Build software collaboratively using modern AI tools and professional engineering workflows.
Every phase builds on the one before it, helping learners develop confidence through consistent progress rather than rushing toward completion.
Our Approach
We believe confidence grows through curiosity, experimentation, and consistent practice, not by memorizing syntax or following tutorials.
Cloud Labs
Every learner starts with the same ready-to-use development environment, making it easy to focus on learning instead of setting up software.
Open your browser
Join the live session
Write code instantly
Build projects
Continue learning anywhere
Cloud Labs provides a consistent, browser-based development environment for every learner, eliminating installation problems and allowing everyone to learn together from day one.
No installations.
No compatibility issues.
Just learning.
Who It's For
CookieSensei is designed for curious learners who want to understand technology by building with it-not just watching tutorials.
Students
Build strong programming and Artificial Intelligence foundations before entering the industry.
Professionals
Develop modern software development and AI skills while continuing your career.
Creators
Turn ideas into real software, intelligent applications, and practical projects.
Everyone starts somewhere.
The only requirement is curiosity.
Workshop
Experience how CookieSensei teaches through a small instructor-led workshop where you'll build and deploy a real project directly from your browser.
CookieSensei Workshop
Idea
Build
Deploy
Share
One workshop.One complete project.One practical introduction to the CookieSensei learning experience.
Ready to Build?
Whether you're curious about the Programming and AI Program, want to attend a Workshop, or simply have questions, we're here to help.
Tell us a little about yourself, what you'd like to learn, and what you're hoping to build.
We'll personally reach out to answer your questions and see if CookieSensei is the right fit for you.
9. Extract All Links
Links are represented by the <a> HTML tag.
For example:
<a href="/about">About</a>We can find all links:
links = soup.find_all("a")Then:
for link in links:
print(link.text)This prints the text displayed for each link.
But often we want the actual URL.
The URL is stored inside the href attribute:
for link in links:
print(link.get("href"))For example:
/about
/curriculum
/contactlinks = soup.find_all("a")
for link in links:
print(link.text)CookieSensei
About
Our Approach
Curriculum
Workshops
Internship
Contact
FAQ
Launch Lab
CookieSensei
About
Our Approach
Curriculum
Workshops
Internship
Contact
FAQ
Launch Lab
Explore Curriculum
Explore Curriculum
Explore Our Approach
Explore Workshops
Start the Conversation
Privacy Policy
Terms
Refund Policy
Contact
10. Getting Both Link Text and URL
We can retrieve both:
for link in links:
text = link.text
url = link.get("href")
print(text, "→", url)We might get:
About → /about
Curriculum → /curriculum
Contact → /contactThis is exactly the kind of information our web crawler will need.
Our crawler can:
- Download a webpage.
- Find all the links.
- Follow those links.
- Download those pages.
- Extract their text.
for link in links:
text = link.text
url = link.get("href")
print(text, ">", url)CookieSensei > /
About > /about
Our Approach > /approach
Curriculum > /curriculum
Workshops > /workshops
Internship > /internship
Contact > /contact
FAQ > /faq
Launch Lab > https://code.cookiesensei.com
CookieSensei > /
About > /about
Our Approach > /approach
Curriculum > /curriculum
Workshops > /workshops
Internship > /internship
Contact > /contact
FAQ > /faq
Launch Lab > https://code.cookiesensei.com
Explore Curriculum > /curriculum
Explore Curriculum > /curriculum
Explore Our Approach > /approach
Explore Workshops > /workshops
Start the Conversation > /contact
Privacy Policy > /privacy-policy
Terms > /terms
Refund Policy > /refund-policy
Contact > /contact
11. Extract All the Text
Sometimes we don't care about individual HTML elements.
We simply want the readable text from the webpage.
BeautifulSoup gives us:
text = soup.get_text()We can make the output cleaner:
text = soup.get_text(" ", strip=True)
print(text)Now we get something closer to:
CookieSensei Learn by Building ...rather than the HTML itself.
This is useful for our chatbot because the text of the webpage will become its memory.
text = soup.get_text(" ", strip=True)
print(text)
CookieSensei CookieSensei About Our Approach Curriculum Workshops Internship Contact FAQ Launch Lab ☰ CookieSensei About Our Approach Curriculum Workshops Internship Contact FAQ Launch Lab Learn to Build with Programming and AI A guided learning program that helps curious learners turn ideas into real software through live instruction, Artificial Intelligence, and practical projects. ✓ Beginner Friendly ✓ Browser-Based Cloud Labs ✓ Phase-Based Learning ✓ Live Instructor Guidance Explore the Program What is CookieSensei? Learning Programming and AI shouldn't begin with installation problems. CookieSensei is a Programming and AI learning program designed to help beginners build confidence through live instruction, browser-based Cloud Labs, and structured learning phases. It's not about finishing quickly. It's about learning well. Programming and AI Program A structured learning journey designed for curious learners. Founding Cohort ₹24,999 Programming in Python ↓ Git & GitHub ↓ Data Science ↓ Artificial Intelligence ↓ Real-World Projects ↓ From Idea to Software The Programming and AI Program is designed to be completed over approximately 6-8 months , with flexibility to learn at your own pace. We're inviting a small group of 15 learners to become the founding cohort of the CookieSensei Programming and AI Program. With only 15 learners, you'll receive personal guidance, live interaction, and individual attention throughout your journey. Explore Curriculum Learning Through Phases Learning isn't measured by weeks. It's measured by understanding. Every learner progresses through a structured series of learning phases. Each phase builds naturally on the previous one, helping you develop the skills and confidence to build real software. Phase 1 Thinking Like a Programmer Learn to solve problems by thinking like a programmer. ↓ Phase 2 Building Software Turn ideas into working software through practical projects. ↓ Phase 3 Teaching Computers to Learn Discover how machines learn patterns from data instead of following fixed rules. ↓ Phase 4 Building Intelligent Systems Combine programming and AI to build useful intelligent applications. ↓ Phase 5 Building for the Real World Build software collaboratively using modern AI tools and professional engineering workflows. Every phase builds on the one before it, helping learners develop confidence through consistent progress rather than rushing toward completion. Explore Curriculum Our Approach Learning happens by building, experimenting, and understanding. ✓ Live instructor-led sessions ✓ Browser-based Cloud Labs ✓ Learn concepts, not memorization ✓ Build real software throughout the program ✓ AI as a learning companion, not a shortcut We believe confidence grows through curiosity, experimentation, and consistent practice, not by memorizing syntax or following tutorials. Explore Our Approach Cloud Labs Learning should begin with curiosity, not installation. Every learner starts with the same ready-to-use development environment, making it easy to focus on learning instead of setting up software. Open your browser ↓ Join the live session ↓ Write code instantly ↓ Build projects ↓ Continue learning anywhere Cloud Labs provides a consistent, browser-based development environment for every learner, eliminating installation problems and allowing everyone to learn together from day one. No installations. No compatibility issues. Just learning. Who It's For Whether you're starting your journey, changing direction, or building new skills. CookieSensei is designed for curious learners who want to understand technology by building with it-not just watching tutorials. Students Build strong programming and Artificial Intelligence foundations before entering the industry. Professionals Develop modern software development and AI skills while continuing your career. Creators Turn ideas into real software, intelligent applications, and practical projects. Everyone starts somewhere. The only requirement is curiosity. Workshop Not ready to join the full program? Experience how CookieSensei teaches through a small instructor-led workshop where you'll build and deploy a real project directly from your browser. CookieSensei Workshop ₹499 Idea ↓ Build ↓ Deploy ↓ Share One workshop. One complete project. One practical introduction to the CookieSensei learning experience. Explore Workshops Ready to Build? We'd love to hear from you. Whether you're curious about the Programming and AI Program, want to attend a Workshop, or simply have questions, we're here to help. Interested in the Programming and AI Program? Tell us a little about yourself, what you'd like to learn, and what you're hoping to build. We'll personally reach out to answer your questions and see if CookieSensei is the right fit for you. Start the Conversation Privacy Policy Terms Refund Policy Contact © 2026 CookieSensei Labs. Build. Learn. Contribute.
12. Removing Unwanted Elements
A webpage contains much more than the information we want.
It may contain:
- JavaScript
- CSS
- navigation
- footers
- menus
- tracking code
Before extracting the text, we can remove some of these elements.
For example:
for element in soup(["script", "style"]):
element.decompose()Then:
text = soup.get_text(" ", strip=True)Now we're much closer to the actual readable content of the page.
for element in soup(["script", "style"]):
element.decompose()
text = soup.get_text(" ", strip=True)13. Putting It All Together
Here's our complete small example:
import requests
from bs4 import BeautifulSoup
url = "https://cookiesensei.com"
response = requests.get(url)
soup = BeautifulSoup(
response.text,
"html.parser"
)
# Remove things we don't need
for element in soup(["script", "style"]):
element.decompose()
# Get the page title
print("TITLE:")
print(soup.title.text)
# Get all headings
print("\nHEADINGS:")
for heading in soup.find_all(["h1", "h2", "h3"]):
print(heading.get_text(" ", strip=True))
# Get all links
print("\nLINKS:")
for link in soup.find_all("a"):
text = link.get_text(" ", strip=True)
url = link.get("href")
print(text, "→", url)
# Get all readable text
print("\nPAGE TEXT:")
text = soup.get_text(" ", strip=True)
print(text)import requests
from bs4 import BeautifulSoup
url = "https://cookiesensei.com"
response = requests.get(url)
soup = BeautifulSoup( response.text, "html.parser" ) # Remove things we don't need
for element in soup(["script", "style"]):
element.decompose()
# Get the page title
print("TITLE:")
print(soup.title.text)
# Get all headings
print("\nHEADINGS:")
for heading in soup.find_all(["h1", "h2", "h3"]):
print(heading.get_text(" ", strip=True))
# Get all links
print("\nLINKS:")
for link in soup.find_all("a"):
text = link.get_text(" ", strip=True)
url = link.get("href")
print(text, "→", url)
# Get all readable text
print("\nPAGE TEXT:")
text = soup.get_text(" ", strip=True)
print(text)TITLE:
CookieSensei
HEADINGS:
CookieSensei
Programming and AI
Learning Programming and AI shouldn't begin with installation problems.
A structured learning journey designed for curious learners.
₹24,999
Learning isn't measured by weeks. It's measured by understanding.
Thinking Like a Programmer
Building Software
Teaching Computers to Learn
Building Intelligent Systems
Building for the Real World
Learning happens by building, experimenting, and understanding.
Learning should begin with curiosity, not installation.
Whether you're starting your journey, changing direction, or building new skills.
Not ready to join the full program?
₹499
We'd love to hear from you.
Interested in the Programming and AI Program?
LINKS:
CookieSensei → /
About → /about
Our Approach → /approach
Curriculum → /curriculum
Workshops → /workshops
Internship → /internship
Contact → /contact
FAQ → /faq
Launch Lab → https://code.cookiesensei.com
CookieSensei → /
About → /about
Our Approach → /approach
Curriculum → /curriculum
Workshops → /workshops
Internship → /internship
Contact → /contact
FAQ → /faq
Launch Lab → https://code.cookiesensei.com
Explore Curriculum → /curriculum
Explore Curriculum → /curriculum
Explore Our Approach → /approach
Explore Workshops → /workshops
Start the Conversation → /contact
Privacy Policy → /privacy-policy
Terms → /terms
Refund Policy → /refund-policy
Contact → /contact
PAGE TEXT:
CookieSensei CookieSensei About Our Approach Curriculum Workshops Internship Contact FAQ Launch Lab ☰ CookieSensei About Our Approach Curriculum Workshops Internship Contact FAQ Launch Lab Learn to Build with Programming and AI A guided learning program that helps curious learners turn ideas into real software through live instruction, Artificial Intelligence, and practical projects. ✓ Beginner Friendly ✓ Browser-Based Cloud Labs ✓ Phase-Based Learning ✓ Live Instructor Guidance Explore the Program What is CookieSensei? Learning Programming and AI shouldn't begin with installation problems. CookieSensei is a Programming and AI learning program designed to help beginners build confidence through live instruction, browser-based Cloud Labs, and structured learning phases. It's not about finishing quickly. It's about learning well. Programming and AI Program A structured learning journey designed for curious learners. Founding Cohort ₹24,999 Programming in Python ↓ Git & GitHub ↓ Data Science ↓ Artificial Intelligence ↓ Real-World Projects ↓ From Idea to Software The Programming and AI Program is designed to be completed over approximately 6-8 months , with flexibility to learn at your own pace. We're inviting a small group of 15 learners to become the founding cohort of the CookieSensei Programming and AI Program. With only 15 learners, you'll receive personal guidance, live interaction, and individual attention throughout your journey. Explore Curriculum Learning Through Phases Learning isn't measured by weeks. It's measured by understanding. Every learner progresses through a structured series of learning phases. Each phase builds naturally on the previous one, helping you develop the skills and confidence to build real software. Phase 1 Thinking Like a Programmer Learn to solve problems by thinking like a programmer. ↓ Phase 2 Building Software Turn ideas into working software through practical projects. ↓ Phase 3 Teaching Computers to Learn Discover how machines learn patterns from data instead of following fixed rules. ↓ Phase 4 Building Intelligent Systems Combine programming and AI to build useful intelligent applications. ↓ Phase 5 Building for the Real World Build software collaboratively using modern AI tools and professional engineering workflows. Every phase builds on the one before it, helping learners develop confidence through consistent progress rather than rushing toward completion. Explore Curriculum Our Approach Learning happens by building, experimenting, and understanding. ✓ Live instructor-led sessions ✓ Browser-based Cloud Labs ✓ Learn concepts, not memorization ✓ Build real software throughout the program ✓ AI as a learning companion, not a shortcut We believe confidence grows through curiosity, experimentation, and consistent practice, not by memorizing syntax or following tutorials. Explore Our Approach Cloud Labs Learning should begin with curiosity, not installation. Every learner starts with the same ready-to-use development environment, making it easy to focus on learning instead of setting up software. Open your browser ↓ Join the live session ↓ Write code instantly ↓ Build projects ↓ Continue learning anywhere Cloud Labs provides a consistent, browser-based development environment for every learner, eliminating installation problems and allowing everyone to learn together from day one. No installations. No compatibility issues. Just learning. Who It's For Whether you're starting your journey, changing direction, or building new skills. CookieSensei is designed for curious learners who want to understand technology by building with it-not just watching tutorials. Students Build strong programming and Artificial Intelligence foundations before entering the industry. Professionals Develop modern software development and AI skills while continuing your career. Creators Turn ideas into real software, intelligent applications, and practical projects. Everyone starts somewhere. The only requirement is curiosity. Workshop Not ready to join the full program? Experience how CookieSensei teaches through a small instructor-led workshop where you'll build and deploy a real project directly from your browser. CookieSensei Workshop ₹499 Idea ↓ Build ↓ Deploy ↓ Share One workshop. One complete project. One practical introduction to the CookieSensei learning experience. Explore Workshops Ready to Build? We'd love to hear from you. Whether you're curious about the Programming and AI Program, want to attend a Workshop, or simply have questions, we're here to help. Interested in the Programming and AI Program? Tell us a little about yourself, what you'd like to learn, and what you're hoping to build. We'll personally reach out to answer your questions and see if CookieSensei is the right fit for you. Start the Conversation Privacy Policy Terms Refund Policy Contact © 2026 CookieSensei Labs. Build. Learn. Contribute.
14. The Mental Model
You don't need to memorize every BeautifulSoup method.
Remember the basic pipeline:
URL
↓
requests.get()
↓
HTML
↓
BeautifulSoup()
↓
Find HTML elements
↓
Extract informationFor example:
response = requests.get(url)
soup = BeautifulSoup(
response.text,
"html.parser"
)
paragraphs = soup.find_all("p")
for paragraph in paragraphs:
print(paragraph.text)That's enough to get started.
15. Your Challenge
Try modifying the program to retrieve information from:
https://cookiesensei.comTry to find:
- The page title
- All
<h1>headings - All
<h2>headings - All paragraph text
- All links
- The
hrefof each link - All readable text on the page
Then answer this question:
If we can download the text from CookieSensei, what could we do with that text?
That's exactly where we're going next.
We'll take the text we retrieved from the website and turn it into the memory of our chatbot.
Lesson resources
Supporting code and files from this part of the curriculum.
Finished this lesson?
Completion is saved in this browser without creating an account.