Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from unittest import result
- from requests import get
- url = 'https://store.tildacdn.com/api/getproductslist/?storepartuid=956794658561&recid=480540430&c=1666868572073&getparts=true&getoptions=true&slice=1&size=36'
- results = get(url).json()
- products = results['products']
- print(f"Всего {results['total']} продуктов")
- for idx, product in enumerate(products):
- title = product['title']
- text = product['text'].replace("<br />", '').replace(" ", ' ')
- print(f"{idx + 1}: {title} - {text}")
Advertisement
Add Comment
Please, Sign In to add comment