Skip to content

Putnug1122/scroost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scroost

CLI Tools for Scraping Products from Tokopedia.

Usage

Once you have Rust installed, you can use Cargo, Rust's package manager and build system, to install and run Scrapedia.

To run Scroost, run the following command in your terminal:

  1. Clone the repository:
git clone https://github.com/putnug1122/scroost
  1. Change directory to the project folder:
cd scroost
  1. Build and install the CLI app using Cargo:
cargo run -- [OPTIONS]

Options:
  -q, --query        Product keyword [default: Samsung]
  -p, --page         Number of pages to scrape [default: 1]
  -f, --format       Output format [default: json]
  -h, --help         Display this help message
  -v, --version      Display version information

Example

Command

cargo run -- -q iphone

Output (products.json)

[
  {
    "product_name": "IBOX Apple iPhone 15 Pro 128GB 256GB 512GB 1TB Blue Natural Titanium",
    "rating": "5.0",
    "store_name": "Studio Ponsel",
    "store_location": "Jakarta Pusat",
    "purchase_amount": "500+ terjual",
    "discount_info": "16%",
    "product_image_url": "https://images.tokopedia.net/img/cache/200-square/VqbcmM/2023/10/27/0c56f8cc-e374-4e8a-a691-88a398c7c3d9.jpg"
  },
  {
    "product_name": "iPhone 14 Garansi Resmi",
    "rating": "5.0",
    "store_name": "igoods gadget",
    "store_location": "Jakarta Barat",
    "purchase_amount": "750+ terjual",
    "discount_info": "17%",
    "product_image_url": "https://images.tokopedia.net/img/cache/200-square/VqbcmM/2023/8/25/a6326dd1-8334-4fd7-821a-5ace01e12c2e.png"
  }
]

About

CLI Tools for Scraping Tokopedia Products

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages