Giter Site home page Giter Site logo

monimahmadh / scrape-star-tech Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 261.31 MB

A Python-based web scraping tool for extracting product information from the Star Tech Ltd website, saving data into CSV format. The tool captures product names, images (encoded in base64), features, and prices, handling pagination to ensure comprehensive data collection. Includes a Python script and executable file.

Jupyter Notebook 0.03% TeX 1.39% HTML 3.58% Python 89.84% Cython 2.13% C++ 0.22% C 2.35% XSLT 0.32% Meson 0.01% Fortran 0.07% Forth 0.01% Pascal 0.01% Smarty 0.02% JavaScript 0.01% PowerShell 0.02% Batchfile 0.01%

scrape-star-tech's Introduction

Scrape Star Tech

This project contains a Python script to scrape product information from the Star Tech Ltd website and store the data in a CSV file. The script scrapes product names, images (in base64 format), features, and prices from the Star Tech website, handling pagination to ensure all products are captured.

Star Tech Ltd

Star Tech Ltd is a leading technology retailer in Bangladesh, providing a wide range of tech products, including laptops, desktops, processors, accessories, and more. They are known for their extensive product selection, competitive pricing, and excellent customer service. The website offers detailed product descriptions, specifications, and prices, making it a valuable resource for tech enthusiasts and consumers looking for the latest technology.

Features

  • Scrapes product names, images, features, and prices from Star Tech Ltd's website.
  • Handles pagination to scrape all product pages.
  • Saves the scraped data into a CSV file.
  • Encodes product images in base64 format.
  • Provides an executable version of the script for easy use without requiring Python.

Prerequisites

  • Python 3.x (for running the script directly)
  • requests library
  • beautifulsoup4 library
  • pandas library

Installation

  1. Clone the repository:

    git clone https://github.com/monimahmadh/Start-Tech-Scrap
    cd scrape_startech
  2. Install the required libraries (if running the script directly):

    pip install -r requirements.txt

Usage

Running the Python Script

  1. Run the script:

    python scrape_startech.py
  2. Follow the prompts to enter the URL of the Star Tech page you want to scrape and the desired filename for the output CSV file.

Using the Executable File

  1. Download the scrape_startech.exe file from the repository.
  2. Double-click the executable file to run the script.
  3. Follow the prompts to enter the URL of the Star Tech page you want to scrape and the desired filename for the output CSV file.

Important Notes

  • Ensure you have an active internet connection while running the script, as it fetches data from the web.
  • The base64 encoding of images can result in large character strings, which might exceed the character limits in some spreadsheet software. Consider alternative methods for storing large base64 strings if necessary.

Example

Paste URL from Star Tech: https://www.startech.com.bd/laptop-notebook
File name (e.g., laptop_data, intel_processor, etc.): laptop_data

The script will save the scraped data in laptop_data.csv.

scrape-star-tech's People

Contributors

monimahmadh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.