Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1marcuth/shopee-api-wrapper
https://github.com/1marcuth/shopee-api-wrapper
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/1marcuth/shopee-api-wrapper
- Owner: 1Marcuth
- Created: 2023-06-14T15:42:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-10T17:55:08.000Z (9 months ago)
- Last Synced: 2024-02-10T18:43:30.484Z (9 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shopee API Wrapper - Not official
## Install
```
pip install shopee-api-wrapper
```## Quickstart
## Fetch product
```py
from shopee_api import Shopeedef 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