Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
berlin.yuna:paginator
Advanced tools
Small browser service [needs chrome to be installed on the machine]
Paginator to get html documents with JS support
ENV VARIABLE | DEFAULT | DESCRIPTION |
---|---|---|
SERVER_PORT | 8089 | Server port |
N/A | 10000 | HTML pages cache limit |
N/A | 10800000ms | HTML pages cache life time |
METHOD | URL | REQUEST BODY | RETURN BODY | Description |
---|---|---|---|---|
GET/PUT | /pages | url, page_cache_ms* [optional] | Get html page from url | |
GET/PUT | /pages/elements | url, Map<queryId, cssQuery>, page_cache_ms* [optional] | Map<queryId, List<Elements>> | Get specific html elements |
GET/PUT | /pages | url, content, page_cache_ms* [optional] | Manual add html page to cache | |
GET/PUT | /pages/statistics | size, maxLifeTime, sizeLimit | Get cache statistics |
* page_cache_ms is optional - it does not overwrite the previous value at the second call.
GET http://localhost:8089/pages/elements
{
"url": "parse.example.com",
"css_queries": {
"form_text": "form p"
}
}
{
"form_text": [
{
"tag": "P",
"text": "Some example text here.",
"selector": "html > body > div > form > p:nth-child(1)",
"attributes": {
},
"children": [
]
}
]
}
POST http://localhost:8089/pages
{
"url": "my.own.example.com",
"content": "<!doctype html><html><head><title>Example Domain</title></head><body><div><h1>Example page</h1></div></body></html>"
}
POST http://localhost:8089/pages
{
"url": "my.own.example.com",
"content": "<!doctype html><html><head><title>Example Domain</title></head><body><div><h1>Example page</h1></div></body></html>"
}
mvn clean -Dmaven.test.skip=true package
docker build -t paginator .
docker tag "$(whoami)/paginator" SOME_REPO_PATH/paginator:latest;
docker push SOME_REPO_PATH/paginator:latest
////((((((((((((((((((((((((((((((* **
//////////////////////////////////* */(/.
//////////////////////////////////* */////*
//////////////////////////////////* *////////.
//////////////////////////////////*
///////......................,////////////////.
//////////////////////////////////////////////.
///////...............................,///////.
///////******************************/////////.
//////////////////////////////////////////////.
//////*. PAGINATOR ,///////.
//////////////////////////////////////////////.
**********************************************.
**********************************************.
********,....*********************************.
********, *********************************.
.,***********, ,*******************.
,,,,,,,,,,,,, ,*,,,,, .,,,,,,.
,,,,,,,,, ,,,,,,,,,,, .,,,,,,.
................ .......,,,. ..........
,,,,,,. ,,,. .,,,.
,,,,,,. .... ,,,.
,,,. ,,,.
....
....
....
FAQs
Small browser service [needs chrome to be installed on the machine]
We found that berlin.yuna:paginator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.