Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Web Scraping & Browser Automation (Python and JavaScript) Module 4

Dynamic pages and browser automation interview questions

Interview questions on dynamic pages and browser automation: warm-ups, then what each harder question tests and how a good answer starts.

3 questions: 1 warm-up and 2 with model answers · Levels: Fresher to mid

Warm-up questions

Short questions with short answers, each answered in full.

  1. Fresher

    What is the difference between a server-rendered and a client-rendered page, for someone collecting data?

    Answered in the lesson Dynamic pages: find the data before a browser

Questions with model answers

What each question tests, the first step of a good answer and the follow-ups to expect.

  1. Fresher to mid

    A client-rendered catalogue of 50,000 products allows automated collection at one request a second. A colleague plans to drive a headless browser through every Load more click, 12 products a click. Estimate the requests and the time against calling the JSON the page uses, and say what you would check before choosing.

    What it tests
    Estimating a collection's cost in requests and time from what a page does, and checking permission, page size and stability before choosing a route.
    First step
    Measure one page before estimating: count the requests a browser makes for the first screen and for each click, in the Network panel or by reading the page's script, and note how many products each JSON answer carries. Then multiply by the number of clicks the catalogue needs.
    Follow-ups

    From the lesson Dynamic pages: find the data before a browser

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page.

    Opening the model answers with your pass…

    Model answers open with any MySmartCoPilot pass.

    • Pro pass · 1 week₹79$2.99
    • 30 days₹179$5.99
    • 1 year₹1,699$45

    One payment; a pass never renews. The price shown is the total you pay: no fees or charges are added at checkout.

    It also opens every other in-depth part in Learn and every Pro tool. Sales are final, except where the law gives you a right to withdraw, for example in the EU and the UK (refund policy).

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  2. Fresher to mid

    The JSON request you found in the Network panel works only with an X-Session-Token header and a cookie, and answers 401 without them. A teammate proposes copying both from the browser into the collector's code. What do you do, and why?

    What it tests
    Telling public data from data behind a session, handling credentials, and choosing a legitimate route when an address needs authentication.
    First step
    Work out what the token is before touching it: does the site give it to every visitor, or only after a login, and what do its terms say about automated use of that address? Then check whether the same data reaches you without it, in the page's HTML, in a script element or through a documented API.
    Follow-ups

    From the lesson Dynamic pages: find the data before a browser

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes

All Web Scraping & Browser Automation (Python and JavaScript) interview questions · The Web Scraping & Browser Automation (Python and JavaScript) track

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.