Getting the token's holder info and pushing to a web server.

Overview

Purpose of this program

I've made this web scraper so you can use it to get the holder's amount from BSCscan and it will upload for you in JSON format to the chosen FTP. From that point you can do with the data whatever you want and display to your site for example.

Set the .env file before you run

It's important to set up the .env file by the given template, otherwise the program won't work. You can set up the .env file in the / directory, same where is your Cargo.toml file too.

# .env

TOKEN_LINK=https://bscscan.com/token/generic-tokenholders2?m=normal&a=YOUR TOKEN'S ADDRESS
# You can set it the name so its gonna modify the json name creation
TOKEN_NAME=YOUR TOKEN'S NAME

FTP_ADDRESS=FTP SERVER ADDRESS WITH PORT USUALLY :21
FTP_USER=USERNAME FOR THE FTP SERVER
FTP_PASSWORD=PASSWORD FOR THE FTP SERVER
# You can select which directory to upload at the FTP server
DIRECTORY_TO_UPLOAD=/DESIRED FOLDER FOR THE FILE UPLOAD

Token link

You can make the token's link pretty easy, all you need is the token's address, same what you adding to your metamask.

Token name

It's easier if you add it, it just change the look of the generated file it will be in this format: TokenName_Holders_ExactTimeGenerated

About the FTP

You can simply set up the FTP login if you have the web server already. Important to note you need to add the port for the address, usually that's :21 You should have permissions on that FTP server with the username and password combo you logging in. And have to create the directory before you set up the directory to upload, because the program not creating directory for you.

For example if you want the 'holders' directory you login to your FTP server with Filezilla, creating the directory and giving '/holders' for the 'DIRECTORY_TO_UPLOAD' environment variable.

In that case the program after being run will upload the generated scraped file to that directory.

Important to note

This version not have too much error handling, because I created the program for myself, so I'm wishing good luck! Maybe we can improve it together?

Contribution

Feel free to contribute, contact me on Discord palinko#0134 and we can figure out something.

You might also like...
A multiplayer web based roguelike built on Rust and WebRTC
A multiplayer web based roguelike built on Rust and WebRTC

Gorgon A multiplayer web-based roguelike build on Rust and WebRTC. License This project is licensed under either of Apache License, Version 2.0, (LICE

Imagine your SSH server only listens on an IPv6 address, and where the last 6 digits are changing every 30 seconds as a TOTP code...

tosh Imagine your SSH server only listens on an IPv6 address, and where the last 6 digits are changing every 30 seconds as a TOTP code... Inspired fro

Simple project to test grpc between ruby (client) and rust (server)

grpc-example Simple project to test grpc between ruby (client) and rust (server). Usage To simplify a lot this project uses docker and docker compose

Network Block Storage server, written in Rust. Supports pluggable and chainable underlying storage

nbd-rs Disclaimer DO NEVER USE THIS FOR PRODUCTION Do not use this for any data that you cannot afford to lose any moment. Expect data loss, corruptio

A Rust based DNS client, server, and resolver

Trust-DNS A Rust based DNS client, server, and Resolver, built to be safe and secure from the ground up. This repo consists of multiple crates: Librar

An online version of the popular game four in a row, written in Rust on the server side and Flutter + Dart on the client.
An online version of the popular game four in a row, written in Rust on the server side and Flutter + Dart on the client.

Four in a Row - Server An online version of the popular game four in a row, written in Rust on the server side and Flutter + Dart on the client. Downl

Conway Game of Life plus WebAssembly and basic HTTP Server
Conway Game of Life plus WebAssembly and basic HTTP Server

Conway Game of Life plus WebAssembly and basic HTTP Server How to run First, you have to choose what server do you want to use for hosting the wasm ga

🔌 A curseforge proxy server, keeping your API key safe and sound.

🔌 CFPROXY - The curseforge proxy server Curseforge has locked down their API and now restricts access without authentification. This spells trouble f

A multi-connection TCP reverse proxy server and client.

tprox A multi-connection TCP reverse proxy. The tprox server is able to proxy multiple incoming connections to the tprox client over a single TCP conn

Owner
null
Open Internet Service to store transaction history for NFTs/Tokens on the Internet Computer

CAP - Certified Asset Provenance Transaction history & asset provenance for NFT’s & Tokens on the Internet Computer CAP is an open internet service pr

Psychedelic 42 Nov 10, 2022
Multithreaded Web Server Made with Rust

Multithreaded Web Server Made with Rust The server listens for TCP connections at address 127.0.0.1:7878. Several pages can be accessed: 127.0.0.1:787

null 2 May 28, 2022
An efficient web server for TiddlyWikis.

Tiddlywiki Server This is a web backend for TiddlyWiki. It uses TiddlyWiki's web server API to save tiddlers in a [SQLite database]. It should come wi

Nathaniel Knight 17 Nov 19, 2022
axum-server is a hyper server implementation designed to be used with axum framework.

axum-server axum-server is a hyper server implementation designed to be used with axum framework. Features Conveniently bind to any number of addresse

null 79 Jan 4, 2023
Jex Compiler Server - Server that runs Jex code

Server that compiles and runs Jex code.

furetur 3 Nov 18, 2021
Dav-server-rs - Rust WebDAV server library. A fork of the webdav-handler crate.

dav-server-rs A fork of the webdav-handler-rs project. Generic async HTTP/Webdav handler Webdav (RFC4918) is defined as HTTP (GET/HEAD/PUT/DELETE) plu

messense 30 Dec 29, 2022
DNS Server written in Rust for fun, see https://dev.to/xfbs/writing-a-dns-server-in-rust-1gpn

DNS Fun Ever wondered how you can write a DNS server in Rust? No? Well, too bad, I'm telling you anyways. But don't worry, this is going to be a fun o

Patrick Elsen 26 Jan 13, 2023
QUIC proxy that allows to use QUIC to connect to an SSH server without needing to patch the client or the server.

quicssh-rs ?? quicssh-rs is a QUIC proxy that allows to use QUIC to connect to an SSH server without needing to patch the client or the server. quicss

Jun Ouyang 18 May 5, 2023
MASQ Network 121 Dec 20, 2022
RDE1 (Rusty Data Exfiltrator) is client and server tool allowing auditor to extract files from DNS and HTTPS protocols written in Rust. 🦀

Information: RDE1 is an old personal project (end 2022) that I didn't continue development on. It's part of a list of projects that helped me to learn

Quentin Texier (g0h4n) 32 Oct 6, 2023