Coder Social home page Coder Social logo

Comments (3)

vvatelot avatar vvatelot commented on August 14, 2024

Hello @arichard-info to be more precise, here is the scenario played by ecoindex: https://www.ecoindex.fr/en/how-it-works/#analysis-methodology

Have you tried to run the complete scenario ?

from ecoindex_python_fullstack.

arichard-info avatar arichard-info commented on August 14, 2024

Hello @vvatelot, thank you for the answer. Yes it's the same scenario I played.

By the way, the official ecoindex.fr scenario can't run in full on the site I gave as an example, nor on many other sites because of the cookie banners that often block scrolling until they've been accepted or declined.

In the case of my scenario, I add a step with playwright to accept third-party cookies in the banner. This way I can execute the rest of the scenario: scroll down and wait three seconds. So I'd expect more nodes than via the ecoindex.fr site. But as I've explained, I'm far from it.

I can't explain why I'm getting so many nodes on the homepage of the site I gave as an example (https://www.kiabi.com).

Whether using a playwright or pupeteer scenario, or even manually in the browser, I always get a much lower number of nodes than that returned by eco-index.fr.

from ecoindex_python_fullstack.

vvatelot avatar vvatelot commented on August 14, 2024

I made tests with headless mode activated and deactivated.

Mode Node count
Headless ~3500
Headfull ~700

By default, ecoindex is running in headless mode. I don't know if I can make it work in headfull mode in a container...

But, in the end, I don't know why kiabi websites has such a difference. I exported the 2 har files if you want to investigate further:
https://gist.github.com/vvatelot/12d8470de4ff83d586408f0225e6424b

from ecoindex_python_fullstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.