Giter Club home page Giter Club logo

niewiemczego / wethenew-client Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12 KB

The wethenew-client is an unofficial Python wrapper for the API of the Wethenew sneaker platform. It facilitates interactions with the platform, allowing users to manage their sneaker listings and offers. This project is independent and is not officially associated with Wethenew.

Home Page: https://pypi.org/project/wethenew-client/

License: MIT License

Python 100.00%

wethenew-client's Introduction

wethenew-client

Overview

The wethenew-client is an unofficial Python wrapper for the API of the Wethenew sneaker platform. It facilitates interactions with the platform, allowing users to manage their sneaker listings and offers. This project is independent and is not officially associated with Wethenew.

Installation

You can install the package using pip:

pip install wethenew-client

Functions

Below is a table of the functions available in the WethenewClient object, detailing whether user login is required.

Function Name Description Login Required
get_current_listings Retrieves the current sneaker listings. Yes
get_current_offers Fetches the current sneaker offers. Yes
extend_listings Extends the expiration date of sneaker listings. Yes
accept_offer Accepts a specific offer. Yes
reject_offer Rejects a specific offer. Yes

Filters

When listing a product or retrieving current listings, you can specify filters to narrow down the results or to set the conditions of your listing. Below are the filter types and their possible values:

ListingDuration

This filter is used to specify the duration for which a product will be listed on the platform. The possible values are:

  • Days15: List the product for 15 days.
  • Days30: List the product for 30 days.
  • Days60: List the product for 60 days.

Usage Example

from wethenew import WethenewClient, ListingDuration

# Initialize the WethenewClient with your credentials.
client = WethenewClient(
    email='[email protected]',
    password='your_password',
    proxies_file_name='path_to_proxies_file.txt'
)

# Retrieve current listings and print them.
listings = client.get_current_listings()
print(listings)

# Accept an offer.
client.accept_offer(offer_id='some_offer_id', variant_id=123)

# Extend a listing.
client.extend_listings(days=ListingDuration.DAYS60, apply_to_same_variants=True)

Note

The use of proxies is recommended to avoid potential rate limits or blocks by the Wethenew API. You can specify proxies in a file, as shown in the example.

wethenew-client's People

Contributors

niewiemczego avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.