Skip to main content

A simple library that communicates with the Shopee website API.

Project description

Shopee API Wrapper - Not official

Install

pip install shopee-api-wrapper

Quickstart

Fetch product

from shopee_api import Shopee

def main():
    # Configuring origin of endpoints
    shopee = Shopee(origin_url = "https://shopee.com.br")

    # Fetching product by URL
    data = shopee.fetch_product(url = "https://shopee.com.br/Videogame-Stick-10mil-2-Controles-Sem-Fio-Console-Original-Portatil-Jogos-Retro-Antigo-Marisa-i.400311012.18265078100")

    # Printing data to the terminal
    print(data)

if __name__ == "__main__":
    main()

Detail: you don't need to do this def main(): ...;if __name__ == "__main__": main() structure, it's just good practice :)

That's it for now, if you have any suggestions, don't hesitate to create an Issue

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

shopee-api-wrapper-0.2.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page