nvidia-sniper
This bot helps us buy Nvidia Founders Edition GPUs as soon as they become available.
Features
- Continuously monitor the availability of target GPU on www.nvidia.com
- Automatically checkout item using PayPal or as guest (credit card)
- Automatically submit the order for credit card payment
- Support for multiple locales (as defined in
config/customer.json
) - Support for multiple GPUs (as defined in
data/gpus.json
)
Supported GPUs
- GeForce RTX 3090
- GeForce RTX 3080
- GeForce RTX 3070
- NVIDIA TITAN RTX
- GeForce RTX 2080 Super
- GeForce RTX 2070 Super
- GeForce RTX 2060 Super
Installation
To run the bot, we need the following things:
- Python 3.8
- Pipenv
- Firefox
Linux (Ubuntu)
sudo apt install firefox python3 pipenv
cd nvidia-sniper
pipenv install
Mac
- Install the latest version of Firefox
- Install brew package manager
- Install Pipenv using
brew install pipenv
- Navigate to project directory using
cd nvidia-sniper
- Install project dependencies using
pipenv install
Windows
- Install Python for Windows
- Install the latest version of Firefox
- Open PowerShell and install Pipenv using
pip install pipenv
- Navigate to project directory using
cd nvidia-sniper
- Install project dependencies using
pipenv install
- Install curses for Windows using
pipenv install windows-curses
If step 5. throws an error saying pipenv is not recognized
- From the project directory root, setup a virtual environment using
python -m venv .venv
- Activate the virtual environment using
.venv/Scripts/activate
- Install
pipenv
again usingpip install pipenv
- Install project dependencies using
pipenv install
- Install curses for Windows using
pipenv install windows-curses
Updating
To update nvidia-sniper
use, git pull
or download a fresh .zip
archive from GitHub.
Make sure to back up the customer.json
in advance as it might get replaced in the process.
Usage
To use the bot, fill out config/customer.json
and run the script.
cd nvidia-sniper
pipenv run python -m sniper
Configuration
In the config
folder a customer.json
file and notifications.json
file are used to configure the data used to auto fill the forms and to configure the bots notifications. To get started, copy and rename the two template files and customize the fields to your liking.
notifications.json
The bot can send multiple push notifications, including a screenshot attachment along the checkout process. See https://github.com/caronc/apprise#supported-notifications for more information. Add additional entries to the services
dictionary in the notifications.json
file for multiple providers. For each notification, a custom message
can be set. Additionally, the screenshot
attachment can be toggled per provider.
A couple of example URLs for different notification services:
pover://user@token
: Pushovertgram://bottoken/ChatID
: Telegramdiscord://webhook_id/webhook_token
: Discord
customer.json
In the customer.json
file you can configure your locale and the field contents used for auto-filling the checkout forms. Some fields require specific values.
locale
The locale
field can have the following values:
de-at
: Austriafr-fr
: Belgiumen-us
: Canadacs-cz
: Czech Republicda-dk
: Denmarkfi-fi
: Finlandfr-fr
: Francede-de
: Germanyit-it
: Italyfr-fr
: Luxembourgpl-pl
: Polandru-ru
: Russian Federationes-es
: Spainsv-se
: Swedenen-gb
: United Kingdomen-us
: United States
speed
The speed
field can have the following values:
shippingOptionID2
: Standard GroundshippingOptionID3
: Next Business day AfternoonshippingOptionID4
: Second Business Day Afternoon
country
The country
field can have the following values:
AT
: AustriaBE
: BelgiumCA
: CanadaCZ
: Czech RepublicDK
: DenmarkFI
: FinlandFR
: FranceDE
: GermanyIT
: ItalyLU
: LuxembourgPL
: PolandRU
: Russian FederationES
: SpainSE
: SwedenGB
: United KingdomUS
: United States
state
For en-us
locale, the state
field can have the following values:
AL
: AlabamaAK
: AlaskaAB
: AlbertaAS
: American SamoaAZ
: ArizonaAR
: ArkansasAA
: Armed Forces AmericaAE
: Armed Forces EuropeAP
: Armed Forces PacificBC
: British ColumbiaCA
: CaliforniaCO
: ColoradoCT
: ConnecticutDE
: DelawareDC
: District Of ColumbiaFM
: Federated States of MicronesiaFL
: FloridaGA
: GeorgiaGU
: GuamHI
: HawaiiID
: IdahoIL
: IllinoisIN
: IndianaIA
: IowaKS
: KansasKY
: KentuckyLA
: LouisianaME
: MaineMB
: ManitobaMH
: Marshall IslandsMD
: MarylandMA
: MassachusettsMI
: MichiganMN
: MinnesotaMS
: MississippiMO
: MissouriMT
: MontanaNE
: NebraskaNV
: NevadaNB
: New BrunswickNH
: New HampshireNJ
: New JerseyNM
: New MexicoNY
: New YorkNL
: Newfoundland and LabradorNC
: North CarolinaND
: North DakotaMP
: Northern Mariana IslandsNT
: Northwest TerritoriesNS
: Nova ScotiaNU
: NunavutOH
: OhioOK
: OklahomaON
: OntarioOR
: OregonPW
: PalauPA
: PennsylvaniaPE
: Prince Edward IslandPR
: Puerto RicoQC
: QuebecRI
: Rhode IslandSK
: SaskatchewanSC
: South CarolinaSD
: South DakotaTN
: TennesseeTX
: TexasUT
: UtahVT
: VermontVI
: Virgin IslandsVA
: VirginiaWA
: WashingtonWV
: West VirginiaWI
: WisconsinWY
: WyomingYT
: Yukon