Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.39 KB

File metadata and controls

50 lines (34 loc) · 1.39 KB

Cashify Price Tracker

A Python application that tracks prices from Cashify's refurbished mobile phone listings and logs them to a Google Sheet for price monitoring and analysis.

Features

  • Scrapes prices from Cashify's refurbished mobile phone pages
  • Automatically logs price data with timestamps to Google Sheets
  • Configurable for different device models
  • Uses Google Sheets API for data storage

Requirements

  • Python 3.x
  • Required packages: requests, beautifulsoup4, pandas, gspread, google-auth
  • Google Service Account credentials (credentials.json)

Setup

  1. Install required packages:
pip install requests beautifulsoup4 pandas gspread google-auth
  1. Set up Google Sheets API:

    • Create a Google Cloud Project
    • Enable Google Sheets API
    • Create a Service Account and download credentials.json
    • Share your Google Sheet with the service account email
  2. Update the script with your Google Sheet ID and device details

Usage

Run the script:

python main.py

The script will scrape the current price and append it to your Google Sheet with a timestamp.

Configuration

  • Modify device_name in the main function for different devices
  • Update the sheet_id with your Google Sheet ID
  • Adjust CSS selectors in scrape_cashify_price() as needed

Note

Make sure to keep your credentials.json file secure and never commit it to version control.