eBay Sniper
Set your maximum. eBay Sniper places one bid, so late that nobody can bid back. If you win, you pay the lowest price eBay allows, never more than your maximum.
uvx ebay-sniper 'https://www.ebay.com/itm/123456789012' --max 150
It needs uv and Chrome, Brave, Edge or Chromium: see Install below.
How it works
You give eBay Sniper an auction and the most you're willing to pay. It places one bid with that amount, timed so that eBay records it about half a second before the end.
eBay then charges only what it takes to win: one bid increment above the next-highest maximum, up to yours. If the highest maximum anyone else set is 100 and yours is 150, you win at 100 plus one increment. If someone set 200, they win and you pay nothing.
Sniping stops others from reacting, but it can't beat a maximum set earlier: a higher one wins, and so does an equal one, because the earlier bid wins ties. So enter the most you would really pay.
Why it bids 2 seconds early
eBay doesn't record a bid the moment it arrives: it takes 1.3–1.6 seconds. We measured it with real bids against eBay's own server clock. A bid sent in the last 1.3 seconds is recorded after the end.
So eBay Sniper:
- Measures eBay's delay one minute before the end and bids just early enough, about 2 seconds, so that eBay records the bid about half a second before the end.
- Rehearses the bid as soon as you start it, up to eBay's confirm button. A too-low amount or a signed-out session shows up right away, not at the last second.
- Corrects your clock against internet time servers (NTP).
Install
You need Chrome, Brave, Edge or Chromium, and uv, which installs Python for you.
uv tool install ebay-sniper
Or, with Python 3.13 or later: pip install ebay-sniper.
Use
ebay-sniper '<item link>' --max <amount>
The amount is in the auction's currency.
- A browser window opens. The first time, sign in to eBay. The session stays on your computer.
- eBay Sniper rehearses the bid, then shows the item, the end time and your maximum. Type
y. - Leave the terminal, the browser and the computer on until the auction ends.
It works on every eBay site and language. Run one command per auction; several can run at once. If eBay shows a human check, complete it in the browser.
| Option | Effect |
|---|---|
--at HH:MM:SS |
For a test: treat this local time as the end. The bid is real. |
--browser PATH |
Use this browser if none is found automatically. |
Every bid is logged to ~/.ebay-sniper/history.jsonl.
Limits
- The browser window must stay visible: eBay blocks headless browsers.
- eBay allows sniping, but its User Agreement prohibits automated access without permission. Use at your own risk.
- If eBay changes its pages, update the selectors at the top of
browser.py.
Develop
uv sync && uv run ruff check . && uv run pytest
EBAY_ITEM='<item link>' EBAY_MAX=<amount> uv run pytest tests/test_live.py -s # real flow, never confirms
Metadata
Release files for ebay-sniper 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ebay_sniper-0.2.1.tar.gz | 15.0 kB | Without provenance | Details for ebay_sniper-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ebay_sniper-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ebay_sniper-0.2.1-py3-none-any.whl |
Total release size: 31.9 kB
Release files / ebay_sniper-0.2.1.tar.gz
| Download URL | ebay_sniper-0.2.1.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6447c54d5434dde41ad502634d2e733a3c39e45fa00ac394b88cce4099c6dce6
|
|
BLAKE2b-256 checksum How to use checksums |
c9d58e2c105f61351164ce803a3f536777b16113aa13da494aaae06ebcd4a497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ebay_sniper-0.2.1-py3-none-any.whl
| Download URL | ebay_sniper-0.2.1-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e2994d10f6eb618b8cad554229ddf708f4d975bb6c2b04a0fd018dfa63a24e0
|
|
BLAKE2b-256 checksum How to use checksums |
4b4e7f1792b7ed3d1af02cc539067bcfcd648714cc4941ab0f6c03ed5e8dfdf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ebay-sniper 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.