The page is empty? It's probably JavaScript. Modern sites load data via AJAX after the HTML loads. `requests.get()` won't work here. Solutions: 1. Reverse engineer the internal API (Best). 2. Use a rendered browser like Playwright (Easiest). Don't give up just because the source code looks empty. What's the hardest site you've tried to scrape? #javascript #react #webdev #scraping
Scraping Empty Pages with JavaScript
More Relevant Posts
-
I built this small project to experiment with the View Transitions API and query parameters. The goal was to create a smooth transition between a card list and a detail view using HTML, CSS, and JavaScript. During testing, I noticed that Chrome doesn’t render the transitions as smoothly yet, while Edge provides a noticeably smoother experience, making it a better option to preview this demo. Live demo: https://lnkd.in/e8jRGwGm #Frontend #JavaScript #CSS
To view or add a comment, sign in
-
🔥 JavaScript Output-Based Question What will be the output of the above code? 👉 Comment your answer below (Don’t run the code ❌) Output: 1 2 1 3 🧠 Why this output comes? (Step-by-Step Explanation) This example is all about JavaScript closures. 1️⃣ Each function call creates a new closure Counter1 and Counter2 are created by separate executions. Each execution creates its own count variable in memory. Internally: Counter1 → count = 0 Counter2 → count = 0 (completely independent) 2️⃣ Execution flow First call of Counter1 → count becomes 1 → prints 1 Second call of Counter1 → count becomes 2 → prints 2 First call of Counter2 → separate closure → count becomes 1 → prints 1 Third call of Counter1 → back to first closure → count becomes 3 → prints 3 #JavaScript #Closures #FrontendDeveloper #MERNStack #ReactJS #InterviewQuestions
To view or add a comment, sign in
-
-
Recently Built a Captcha Generator using HTML, CSS, and JavaScript check it out here:👉https://lnkd.in/g2eC-pyD It may look simple, but it covers: Random string generation User input validation Real-time feedback with UI effects DOM manipulation & Event handling Small projects like this really expose logic gaps and improve problem-solving. Thanks. #JavaScript #FrontendDevelopment #WebDev #PracticeProjects
To view or add a comment, sign in
-
Imagine the below piece of JS code, what will the user experience? Hint: Answer lies in the understanding of the Event loop. #javascript
To view or add a comment, sign in
-
-
⚡ JavaScript Concept: Event Loop — How JS Handles Async Code JavaScript is single-threaded… yet it handles thousands of async operations smoothly. How? 🤔 👉 The answer is the Event Loop 🔹 Execution Order 1️⃣ Call Stack — runs synchronous code 2️⃣ Web APIs — handles async tasks (setTimeout, fetch, etc.) 3️⃣ Callback Queue — stores completed async callbacks 4️⃣ Event Loop — moves callbacks to the stack 🔹 Example console.log("Start"); setTimeout(() => { console.log("Async Task"); }, 0); console.log("End"); 📌 Output: Start End Async Task 💡 Even with 0ms delay, async code runs after synchronous code. Mastering the Event Loop = mastering async JavaScript 🚀 #JavaScript #EventLoop #AsyncJS #Frontend #WebDevelopment
To view or add a comment, sign in
-
JavaScript Type Coercion (Pro Tip) ⚡ JavaScript Type Coercion: Friend or Foe? JavaScript automatically converts types in expressions. This is powerful but can be tricky: console.log('5' - 2); // 3console.log('5' + 2); // '52'console.log(true + 1); // 2 ✅ Always know when JS converts types to avoid surprises. ✅ Use === over == for comparison to prevent unwanted coercion. 💡 Mastering this separates good developers from great developers. #JavaScript #WebDevelopment #CodingTips #TypeCoercion If you want, I can draft 5–10 more LinkedIn posts covering core JS topics like Scopes, Hoisting, Closures, ES6 Features, Async/Await that will position you as an authority on JS. Do you want me to do that next? check out this picture and give me proper image for this content
To view or add a comment, sign in
-
-
When working with arrays in JavaScript, these four methods come up all the time forEach, map, filter, and find. They look similar, but each has a very specific purpose 1. forEach() Used when you want to loop through an array and perform an action (like logging, updating UI). it does not return a new array. 2. map() Used when you want to transform data. Returns a new array with modified values. Perfect for formatting API data. 3. filter() Used when you want to select specific items based on a condition. Returns a new array with matched elements only. 4. find() Used when you want to get a single item that matches a condition. Returns the first matched element, not an array. #JavaScript #ES6 #WebDevelopment #FrontendDeveloper #ReactJS #LearningInPublic
To view or add a comment, sign in
-
JAVASCRIPT NOTES — PART 1 (Foundations) After structure (HTML) and styling (CSS), JavaScript is where logic begins. This post covers the fundamentals that everything else depends on: • Variables (let, const, scope) • Data types • Operators & type coercion • Conditionals & loops • Functions & hoisting Most confusion in JavaScript doesn’t come from complexity — it comes from unclear basics. Before frameworks, before React, understanding these concepts clearly makes everything easier. 📌 Save this if you’re building JavaScript properly. #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #InterviewPrep #StudentDeveloper #Consistency
To view or add a comment, sign in
-
This small filter() mistake is hurting your JavaScript readability. Most developers write: Returning true or false inside an unnecessary if/else. But filter() already expects a boolean. Return the condition directly. Less noise. More clarity. Cleaner code. Readable code > clever code. Do you prefer explicit returns or implicit ones? 👇 #JavaScript #WebDevelopment #CleanCode #SoftwareEngineering #Frontend
To view or add a comment, sign in
-
#Day 58/100 – Why JavaScript is Single-Threaded (and why that’s actually powerful) ⚡ When I first heard “JavaScript is single-threaded” I thought… Wait — only one thing at a time? Isn’t that slow? But today I understood something important. JavaScript being single-threaded is not a weakness. It’s the reason the web feels smooth. Imagine editing a form and suddenly the page freezes because 5 things run at once. That would be chaos. Instead, JavaScript follows a rule: Do one thing clearly, finish it, then move to the next. This makes UI predictable and prevents race conditions. But then how do videos load, APIs fetch data, and timers run? Because the browser handles heavy work in the background and JavaScript handles the result when it’s ready. So JS stays simple. The browser stays powerful. Big realization 💡 JavaScript isn’t trying to do everything at once — it’s trying to do everything in order. And that’s why websites don’t constantly break. Today I stopped thinking “single-threaded = limitation” Now I see “single-threaded = stability” #100DaysOfCode #JavaScript #WebDevelopment #LearningInPublic #FrontendDevelopment #CodingJourney
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development