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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file shopee-api-wrapper-0.2.1.tar.gz
.
File metadata
- Download URL: shopee-api-wrapper-0.2.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 094b0a06137427805dd1eadfb0e5af3c06f47f6d6027a7ba21584e7d1f84a0aa |
|
MD5 | 301d0e86596cd3d69eace1317082bc64 |
|
BLAKE2b-256 | 50894d4d3e3ff3c191834e35e9358ad94be4ef4e9caf1b4110103a0528dacf73 |