container_provisioner

command module
v0.0.0-...-f8fee01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

README

Container Provisioner

Container Provisioner is a tool written in Go that provides a UI for the users to interact with the scraper. It uses the Docker API to provision the containers and run the scraper. The UI is written in raw HTML and JavaScript while the backend web framwork is Fiber.

The scraped reviews will be uploaded to Cloudflare R2 Buckets for storing. R2 is S3-Compatible; therefore, technically, one can also use AWS S3 for storing the scraped reviews.

Pull the latest scraper Docker image

docker pull ghcr.io/algo7/tripadvisor-review-scraper/scraper:latest

Credentials Configuration

R2 Bucket Credentials

You will need to create a folder called credentials in the container_provisioner directory of the project. The credentials folder will contain the credentials for the R2 bucket. The credentials file should be named creds.json and should be in the following format:

{
    "bucketName": "<R2_Bucket_Name>",
    "accountId": "<Cloudflare_Account_Id>",
    "accessKeyId": "<R2_Bucket_AccessKey_ID>",
    "accessKeySecret": "<R2_Bucket_AccessKey_Secret>"
}
R2 Bucket URL

You will also have to set the R2_URL environment variable in the docker-compose.yml file to the URL of the R2 bucket. The URL should end with a /.

Run the container provisioner

The docker-compose.yml for the provisioner is located in the container_provisioner folder.

Visit the UI

The UI is accessible at http://localhost:3000.

Live Demo

A live demo of the container provisioner is available at https://scraper.algo7.tools.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL