Skip to content

jonacarbi/xcp-wallet-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallet Asset Comparison Flask App

Overview

This Flask application compares token assets between two wallet addresses based on a predefined list of assets stored in Dank_Assets.txt. The application fetches wallet balances using an external API and identifies unique assets found in the second wallet but not in the first.

Additionally, a web scraper is included to keep the Dank_Assets.txt file updated with the latest assets from https://pepe.wtf/assets/dank-rares.

Features

  • Loads a list of assets from Dank_Assets.txt.
  • Fetches wallet assets from an external API (tokenscan.io).
  • Compares two wallet addresses and highlights unique assets in the second wallet.
  • Displays results in a simple web interface.
  • Scrapes the latest Dank assets and updates Dank_Assets.txt automatically.

Requirements

Install Dependencies

Ensure you have Python installed and install the necessary dependencies:

pip install flask requests selenium webdriver-manager beautifulsoup4

File Structure

  • app.py: The main Flask application file.
  • scraper.py: A script that scrapes Dank assets and updates Dank_Assets.txt.
  • Dank_Assets.txt: A text file containing asset names to track.
  • templates/index.html: HTML template for user input and results display.

Usage

Running the Flask App

  1. Ensure Dank_Assets.txt exists and contains asset names (one per line).
  2. Run the Flask application:
python app.py
  1. Open your browser and go to http://127.0.0.1:5000/.
  2. Enter two wallet addresses and submit to compare assets.

Updating Dank Assets

Run the scraping script to update Dank_Assets.txt:

python scraper.py

This will scrape the latest assets from https://pepe.wtf/assets/dank-rares and update the file.

API Integration

The app fetches assets from:

https://tokenscan.io/api/balances/{wallet_address}?page={page}&limit={limit}

Make sure the API is functional before running the application.

Notes

  • If Dank_Assets.txt is missing, the app will assume an empty asset list.
  • If the API request fails, it returns an empty asset list instead of crashing.
  • The scraper runs in headless mode to automate asset updates efficiently.

License

This project is open-source and available for modification and distribution.

About

A simple Python script to compare wallets for trading Dank Rare Agency Assets (Bitcoin NFTs)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors