git clone https://github.com/Neotoxic-off/Juice
cd Juice
docker-compose up --build
r = requests.post("http://127.0.0.1:8081/scrap", json = {
"method": "GET",
"host": "https://example.com",
"params": [],
"tag": "a",
"element": "href",
"attrs": {},
"headers": {},
"data": {},
"range": [0, 10],
"ptag": "page"
})
- Method:
GET
, POST
, PUT
, DELETE
, PATCH
- Host:
https://example.com
- Params:
[
["param1", "paramvalue1"]
]
- Tag:
img
, a
, p
, ...
- Element:
href
, src
, class
, ...
- Attrs:
{
"class": "avatar",
"id": "main"
}
{
"User-Agent": "Example",
"Token": "issou"
}
- Range:
[0, 3]
- Ptag:
page
, p
- Method:
POST
- Route:
/scrap
- Json:
{
"method": "GET",
"host": "https://github.com/Neotoxic-off",
"params": [
["tab", "repositories"]
],
"tag": "img",
"element": "src",
"attrs": {
"class": "avatar avatar-user width-full border color-bg-default"
},
"headers": {},
"data": {},
"range": [0, 3],
"ptag": "page"
}