
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
lib_shop_api
ΡΡΠΎ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° Python ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²Π»ΡΠ΅Ρ api Π΄Π»Ρ ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΈ ΠΎ ΡΠΎΠ²Π°ΡΠ°Ρ
Ρ ΡΠ°ΠΉΡΠ°
pip install lib_shop_api
git clone https://github.com/YuranIgnatenko/lib_shop_api.git
cd lib_shop_api
pip install .
# ΠΈΠΌΠΏΠΎΡΡ ΠΏΠ°ΡΡΠ΅ΡΠ°
from lib_shop_api import Parser
# ΠΈΠΌΡΠΎΡΡ ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΠΉ ΡΠΎΠ²Π°ΡΠΎΠ² Π΄Π»Ρ ΠΏΠΎΠΈΡΠΊΠ°
from lib_shop_api.constants import K_NOTEBOOK, K_MONITOR, K_DVD
# ΡΠΎΠ·Π΄Π°Π½ΠΈΠ΅ ΠΏΠ°ΡΡΠ΅ΡΠ°
parser = Parser()
# ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²Π° Π²ΡΠ΅Ρ
ΡΡΡΠ°Π½ΠΈΡ
count_pages = parser.get_count_pages(K_NOTEBOOK)
# ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²Π° Π²ΡΠ΅Π³ΠΎ ΡΠΎΠ²Π°ΡΠ° ΠΈΠ· ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΠΈ
count_products = parser.get_count_products(K_MONITOR)
# ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΡΠΏΠΈΡΠΊΠ° ΡΠΎΠ²Π°ΡΠΎΠ² Π² Π²ΠΈΠ΄Π΅ ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ² ΠΊΠ»Π°ΡΡΠ° models.Product
number_page = 1
products = parser.get_products(K_DVD, number_page)
# ΠΏΠΎΠ»ΡΡΠΈΡΡ ΠΏΠΎΠ»Ρ ΠΏΡΠΎΠ΄ΡΠΊΡΠ°
product = products[0]
print(str(product))
print(product.title)
print(product.image)
print(product.price)
print(product.catalog)
print(product.description)
# ΠΏΠΎΠ»ΡΡΠΈΠ΅Π½ΠΈ ΠΈΠ· ΠΈΡΠ΅ΡΠ°ΡΠΎΡΠ°
#Ρ ΡΠΊΠ°Π·Π°Π½ΠΈΠ΅ΠΌ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΠΎ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΠ³ΠΎ ΠΊΠΎΠ»-Π²Π°
#ΠΏΡΠΎΠ΄ΡΠΊΡΠΎΠ² Π½Π° Π²ΡΡ
ΠΎΠ΄Π΅
max_wait_out_product = 5
for product in parser.get_products_iterator(K_DVD, max_wait_out_product)
print(product.title)
# ΠΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°Π΅ΠΌΡΠ΅ ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΠΈ:
K_NOTEBOOK
K_MONITOR
K_SYS_BLOCK
K_MFU
K_MONO_BLOCK
K_SMARTPHONE
K_TABLET
K_SMART_WATCH
K_WATCH
K_VR
K_FITNES
K_E_BOOK
K_ACTION_CAMERA
K_FOR_GARDEN4
K_ELECTROTOOL
K_SENSORSTOOL
K_STRONG_TECH
K_MACHINE
K_AUDIO_TECH
K_DVD
K_OTH_FOR_PHOTO_VIDEO
K_HOME_KINOTEATR
K_MICROPHONE
K_FOR_TV
K_TV
K_HI_FI_TECH
K_CAMERA
K_PROECTOR
K_CAMERA_TOOLS
K_VIDEOCAMERA
K_SALES
K_OTHERS
using sources from site:
https://skypka.com/
FAQs
Library-api for web-shop
We found that lib-shop-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.