Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Proxy-like server that will show you the DOM of a page after JS runs
Especially useful when combined with Huginn's WebsiteAgent
. See cantino/huginn#888
$ [sudo] npm install -g fulldom-server
Simple usage:
$ fulldom-server
This will give you a fulldom server running on port 8000, bound to 0.0.0.0
. You can override these defaults with CLI options:
$ fulldom-server -p 1337 -a localhost
This tells fulldom to bind to port 1337 on localhost only.
You can also do the same thing with environment variables, if that's your cup of tea:
$ FULLDOM_PORT=1337 FULLDOM_ADDRESS=localhost fulldom-server
And last but not least, you can configure fulldom with a JSON configuration file at /etc/fulldom.json
(or whatever is specified with --config
or -c
):
$ cat /etc/fulldom.json
{
"port: 1337,
"address: "localhost"
}
$ fulldom-server
The configuration keys are the same as the long-form CLI options (e.g. --port
on the CLI corresponds to port
in JSON).
See fulldom-server --help
for details.
fulldom relies on PhantomJS and thus has to spawn a new process for each and every incoming request.
Please keep this in mind if you plan to publicly deploy fulldom or use it in production.
tl;dr: do an HTTP GET on /<url>?selector=<selector>
to get the serialized DOM of <url>
as soon as <selector>
appears in the document.
fulldom exposes a single endpoint at /<url>
which, when sent an HTTP GET request, will give you back the serialized DOM of the page at <url>
when the page's JS has "finished running". As it is essentially impossible to determine when that happens you need to specify a CSS selector, the presence of which will be used as a heuristic for when the page is "loaded". For example, if you are trying to scrape an image gallery, but the gallery is filled in via JS, you might use img
as your selector. In this case fulldom will load the gallery and wait until there is at least one match for the img
selector, then serialize the gallery's DOM and return it to you in an HTTP response.
Note that both <url>
and <selector>
should be percent-encoded - you need to be particularly careful to encode /
s. ProTip™: :
is %3A
, and /
is %2F
.
Alex Jordan alex@strugee.net
AGPL 3.0+
1.1.1 - 2016-10-16
FAQs
Proxy-like server that will show you the DOM of a page after JS runs
The npm package fulldom receives a total of 1 weekly downloads. As such, fulldom popularity was classified as not popular.
We found that fulldom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.