Git Product home page Git Product logo

webpagetest.crawler's People

Contributors

abdulsuhail avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

webpagetest.crawler's Issues

Convert to a CLI/npm module

This is already super helpful, but I think it opens up more possibilities and probably better overall ergonomics if this was available to run like this (for example):

index.js -level 3 -url_limit 10 -key #### -whiteListUrls whiteListUrls.txt

A few of those could take either config files or just params (like, whiteListUrls could potentially be just a list of urls passed directly, and I could see a config param to pass in a config file versus using level, url_limit, etc.

The end goal though is that when this is set, we could wrap this up as an npm module so people could eventually have something like:

npx wpt-crawler -level 3 .....

Which would make it easier to drop into other workflows.

What do you think, @abdulsuhail?

Rename whiteListUrls

whiteListUrls doesn't quite match what you're doing there and implies that the ability to black list other URLs. Maybe just call it urls or startingUrls?

Change from sleep to stack for queuing tests

Right now, looks like once 5 URLs are submitted, sleep is used to hold off for a bit and reset the submission count, presumably to avoid having too many concurrent tests running. https://github.com/abdulsuhail/wpt-crawler/blob/main/index.js#L100

It's a decent rough gauge, but even that doesn't ensure that any of the tests have completed before things pick back up again.

Could this be changed to watch for whenever a test is completed? Ex: submit 5, wait, a test completes, so another gets submitted, etc.

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.