News Feed Forums General Web Scraping How do I approach scraping data that appears only on hover or in tooltips?

  • How do I approach scraping data that appears only on hover or in tooltips?

    Posted by Tasunka Meliton on 11/15/2024 at 6:37 am

    I use Selenium to hover over elements and reveal the tooltip data. Selenium’s actions chains are perfect for simulating mouse movements.

    Eugenija Heliodoros replied 3 days, 2 hours ago 8 Members · 7 Replies
  • 7 Replies
  • Gojko Diomedes

    Member
    11/19/2024 at 5:41 am

    Puppeteer’s hover function is another great option; it loads the tooltip content on hover without needing a visible browser.

  • Headley Corrie

    Member
    11/19/2024 at 5:53 am

    Some tooltips are loaded as separate AJAX requests, so inspecting network requests while hovering often reveals endpoints for the data.

  • Elea Aelita

    Member
    11/19/2024 at 6:02 am

    CSS pseudo-elements like :hover can sometimes be manipulated to show hidden content in the browser for easier scraping.

  • Herakles Urias

    Member
    11/19/2024 at 6:21 am

    If hovering over items manually is impractical, I program the script to hover over each element sequentially and capture the data.

  • Iphigenia Patricius

    Member
    11/19/2024 at 6:44 am

    Some sites hide tooltip content in hidden divs. Uncovering these elements with JavaScript before scraping works in cases where data is preloaded.

  • Nohemi Preben

    Member
    11/19/2024 at 7:49 am

    I add waits between hover actions to let each tooltip load fully, which prevents missing data from elements that take longer to display.

  • Eugenija Heliodoros

    Member
    11/19/2024 at 8:00 am

    If the tooltip text is stored in attributes like title, extracting those attributes directly is simpler than relying on hover actions.

Log in to reply.