Skip to content

Python price tracker for Cashify refurbished mobile phones

Notifications You must be signed in to change notification settings

codervaruns/cashify-price-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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.

About

Python price tracker for Cashify refurbished mobile phones

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages