Unofficial Python client for Gixen.com (eBay sniping) — automates its website since there's no public API.
Project description
gixenpy
Unofficial Python client for Gixen.com (eBay sniping)
See usage examples »
Report a bug
·
Request a feature
Table of Contents
About The Project
Gixen used to offer a public API for scheduling
snipes (last-second eBay bids); that API is now restricted to regular
users. gixenpy solves that by automating Gixen's web form with requests,
just like a browser with JavaScript disabled would — without depending on an
API that's no longer available.
Not a Gixen product, not affiliated with Gixen.com. Checked against their terms of use and FAQ: they don't prohibit automated access, but use it at your own risk — Gixen may block traffic it doesn't recognize at its discretion.
What you can do with it:
- Schedule (
add_snipe), list (list_snipes), edit (update_snipe), delete (delete_snipe) and purge ended snipes (purge_completed). - Bid, offset (seconds before the close) and bid group, all configurable; in
update_snipeeach one is independent and optional (whatever isn't passed is kept as-is). - Tell active snipes apart from ended ones (
Snipe.status). - Dynamically locate Gixen's forms by parsing the HTML, instead of assuming fixed field names: if Gixen changes their site, it keeps working as long as the form structure doesn't change too much.
- Dry-run mode (the default for
add_snipeunless told otherwise): sends nothing, just reports what it would send. - A full CLI:
gixenpy list/add/edit/remove/purge/group.
Built With
Getting Started
Prerequisites
- Python 3.10 or newer
- A Gixen account (credentials are Gixen's, not eBay's)
Installation
pip install gixenpy
For development (with tests):
git clone https://github.com/figurophobia/gixenpy.git
cd gixenpy
pip install -e ".[dev]"
Usage
As a library
from gixenpy import GixenClient
client = GixenClient(username="your_gixen_username", password="your_password", dry_run=True)
# Schedule a snipe (dry_run=True by default: doesn't bid for real).
result = client.add_snipe(item_id="123456789012", max_bid=42.50)
print(result.message)
# When you want to bid for real:
result = client.add_snipe(item_id="123456789012", max_bid=42.50, dry_run=False)
# Manage existing snipes.
for snipe in client.list_snipes():
print(snipe.item_id, snipe.max_bid, snipe.status) # "active" | "ended" | "unknown"
client.update_snipe(item_id="123456789012", new_max=55)
client.delete_snipe(item_id="123456789012")
# Offset (seconds before the close) and bid group, optional:
client.add_snipe(item_id="123456789012", max_bid=42.50, offset=9, group=1, dry_run=False)
client.update_snipe(item_id="123456789012", offset=12) # change only the offset
client.update_snipe(item_id="123456789012", group=2) # change only the group
client.purge_completed() # remove already-ended snipes from the history
Credentials are your Gixen account's (not eBay's). Never logged or printed.
As a CLI
export GIXEN_USERNAME=your_username
export GIXEN_PASSWORD=your_password
# or create a .env with those two lines (see .env.example)
gixenpy --help # list of commands
gixenpy --version
gixenpy list # active and ended snipes
gixenpy add 123456789012 42.50 # schedules a snipe FOR REAL
gixenpy add 123456789012 42.50 --offset 9 --group 1 # with offset/group
gixenpy add 123456789012 42.50 --dry-run # just shows what would be sent
gixenpy edit 123456789012 55 # change the max bid
gixenpy edit 123456789012 --offset 12 # change only the offset (keeps the bid)
gixenpy edit 123456789012 --group 2 # change only the group
gixenpy remove 123456789012 # delete the snipe
gixenpy purge # purge ended snipes from the history
gixenpy group 3 123456789012 987654321098 # assign group 3 to several items
Every command exits with code 0 if Gixen confirmed the operation, or 1
if it failed/errored (message on stderr, prefixed with ERROR:).
Security
- A small, fixed number of requests per action (1 GET + 1 POST), no aggressive polling.
- Reuses the existing session instead of relogging on every action (avoiding unnecessarily kicking out other sessions — Gixen only allows one active session per account).
- The max bid amount is always decided by whoever calls the library; it never picks a value on its own.
- Any form URL extracted from Gixen's HTML is validated against
gixen.com(and HTTPS only) before sending anything; a tampered response can't make the client send the payload to a different host. - Configurable connect/read timeouts (
GixenClient(timeout=...), default(5, 25)seconds) to fail fast on network issues. - A single retry with backoff (
GixenClient(retry_backoff=...), 2 seconds by default) if Gixen accepts a write but doesn't end up applying it — never on an explicit rejection.
Tests
pip install -e ".[dev]"
pytest -q
Neither suite makes any network requests: tests/test_client.py replaces
Gixen's logged-in page with test HTML and verifies form parsing and the
payload built; tests/test_cli.py exercises the CLI with
click.testing.CliRunner, injecting a fake client.
Publishing to PyPI
gixenpy is published on PyPI. New
releases are published automatically: publishing a
GitHub Release triggers
.github/workflows/publish.yml, which
builds the package and uploads it to PyPI using
Trusted Publishing (OIDC —
no API token stored anywhere).
To cut a new release:
- Bump the version in
pyproject.tomlandsrc/gixenpy/__init__.py, updateCHANGELOG.md, commit and push. - Tag it and publish a GitHub Release (e.g.
gh release create v0.3.0). - That's it — the workflow builds and uploads it to PyPI.
Manual publishing still works too, if ever needed:
pip install -e ".[dev]" build twine
python -m build # generates dist/*.tar.gz and dist/*.whl
twine check dist/* # validates the package
twine upload dist/* # requires your own PyPI API token
Roadmap
- Publish
gixenpyon PyPI - Persistent session across processes (today every new
GixenClientlogs in if needed; there's no on-disk session cache) - Revisit the active/ended status heuristic if Gixen changes the text/order of "Status (main): ..." in their HTML
See the open issues for the full list of proposed features (and known issues).
Contributing
Contributions are welcome. If you have an idea that would make this better, fork the repo and open a pull request, or simply open an issue with the "enhancement" tag.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/my-feature) - Commit your Changes (
git commit -m 'Add my-feature') - Push to the Branch (
git push origin feature/my-feature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more
information.
Contact
Project issues: github.com/figurophobia/gixenpy/issues
Acknowledgments
- hsukenooi/gixen-cli — another independent implementation of the same problem, used as a reference for several improvements to this library
- Best-README-Template — the template used for this README
- Gixen.com for the sniping service itself
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gixenpy-0.2.1.tar.gz.
File metadata
- Download URL: gixenpy-0.2.1.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e5e97e88ef7847aac0a2e5577fef51e0379e87cbe1e05c4024ae09c0d1a2bf7
|
|
| MD5 |
cf5f79246257821f411aa73193c21af3
|
|
| BLAKE2b-256 |
fa1c593bf1418847f49e324d5f58ffce14f80e0ee118881149c994354bf21995
|
File details
Details for the file gixenpy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: gixenpy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8a63d38fc68e0c1098378e23c224892f49e53714e9b555a622657a4fff4ab1f
|
|
| MD5 |
39788b1d301accc67ddbefb232b6593c
|
|
| BLAKE2b-256 |
dd075a0f50ab3184e95b397ee8a34aae2cb8e4b9c04e5a8da830c1e2dbe1afff
|