فحص صفحات الويب
أتقن أدوات مطوري المتصفح لتحليل HTML وCSS وJavaScript وتحديد العناصر المهمة لاستخراج البيانات
فحص صفحات الويب درس مجاني في Web Scraping & Bots على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Web Scraping & Bots، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Web Scraping & Bots 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Welcome to DevTools!
Browser DevTools are your X-ray glasses — they reveal the HTML, CSS, and JavaScript behind any page. For scraping, that’s a superpower.
Why DevTools for Scraping?
Scraping means telling your code exactly what to grab. DevTools let you locate elements, read the page structure, and spot IDs and classes to target.
Opening Developer Tools
Open DevTools fast: right-click and pick “Inspect,” or hit F12 (Windows/Linux) or Cmd+Opt+I (Mac).
The Elements Panel: HTML View
The Elements panel is home base — it shows the live HTML (the DOM): nested tags like <div>, <p>, and <a>, so you see how content is organized.
Using the Inspector Tool
Use the inspector (the arrow-in-a-box icon): click it, then click anything on the page, and DevTools highlights its exact HTML. Super handy.
Navigating the DOM Tree
The HTML is a tree: elements have parents and children. Expand and collapse nodes to pinpoint exactly where your target data lives.
Attributes: Your Data Clues
HTML attributes are scraping gold — especially id (unique) and class (shared). Watch href, src, and data-* too; they tell your scraper what to find.
Styles Panel & CSS
The Styles panel shows the CSS on the selected element. Not for extraction directly, but it helps confirm you’re targeting the right element for CSS selectors.
The Console: Quick Checks
The Console is a direct line to the page’s JavaScript — run quick commands, see errors, and test small interactions before you script them.
Test Your DevTools Knowledge!
You've learned about several key panels in browser Developer Tools. Which of the following statements about their functions are TRUE?
Recap: DevTools Power
Nice! You can open DevTools, read HTML in the Elements panel, use the inspector, and lean on id/class attributes to find scrape targets.
الأسئلة الشائعة
هل درس «فحص صفحات الويب» مجاني؟
نعم — نص درس «فحص صفحات الويب» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Web Scraping & Bots، انتقل إلى CoddyKit PRO. تتضمن دورة Web Scraping & Bots 4 دروس في المجموع.
ماذا ستتعلم في «فحص صفحات الويب»؟
أتقن أدوات مطوري المتصفح لتحليل HTML وCSS وJavaScript وتحديد العناصر المهمة لاستخراج البيانات تتمرن على Web Scraping & Bots مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Web Scraping & Bots؟
لا تُشترط خبرة سابقة. Web Scraping & Bots على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.
كم من الوقت يستغرق درس «فحص صفحات الويب»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Web Scraping & Bots هذا؟
نعم. كل درس في Web Scraping & Bots يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.