andrewvy / chromesmith Goto Github PK
View Code? Open in Web Editor NEW[in constant flux] Elixir library for forging distributed workloads across headless chrome workers
Home Page: https://hex.pm/packages/chromesmith
[in constant flux] Elixir library for forging distributed workloads across headless chrome workers
Home Page: https://hex.pm/packages/chromesmith
This is useful for screenshot use-cases, where we want to load a page but only take a screenshot until all resources have finished loading.
This can be achieved by listening to all network events for a page to know when requests have settled.
There are a couple meanings to pooling, there's pooling of separate chrome processes, as well as pooling of targets within a single headless chrome process.
Some questions:
While low-level API provided by CDP is available throughchrome-remote-interface
, it may be nice to develop a higher-level DSL for common workflows. (Clicking elements, etc.)
Right now, each chrome instance will start its remote debugger port on 9222 + index
. This will cause problems if there are multiple Chromesmith pools.
Looks like we will have to implement some sort of random port finder.
I think it would be very nice to be able to get the resource usage of the chrome instances. If we implement an interface for this in chrome-launcher, we will have to add support for our pooling system to be able to manage multiple instances and grab their metrics in a timely way.
Chromesmith should utilize user profiles to sandbox/clean-up between pages and sessions.
One of the goals of this library is to also expose GenStage functionality, batteries-included to load balance across the pool of processes + pages. This functionality is not required and is one of the tools available for developers to build their workflows.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.