Skip to content

Simple REST API for downloading web pages recursively (default depth is 3)

Notifications You must be signed in to change notification settings

adilamirov/website-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run

docker-compose up

Use

Create download task

POST http://localhost:8080/tasks

Request example:

{
    "url": "http://example.com/"
}

Response example:

{
    "download_link": null,
    "id": "5f21d4b7661156e6f9418152",
    "status": "CREATED",
    "url": "http://example.com/"
}

Check task status

GET http://localhost:8080/tasks/$id

Response example:

{
    "download_link": "/upload/5f21d4b7661156e6f9418152.zip",
    "id": "5f21d4b7661156e6f9418152",
    "status": "COMPLETE",
    "url": "http://example.com/"
}

Download archive

GET http://localhost:8080/upload/5f21d4b7661156e6f9418152.zip

About

Simple REST API for downloading web pages recursively (default depth is 3)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published