Skip to main content

A cozzy('hygge') way to get json response back asynchronously

Project description

https://foobar.svg

Overview

website: hygge.

# install hygge
pip install hygge

How to use

from hygge.get import GetResponse

url = 'https://www.trustpilot.com/businessunit/search'
params = {'country': 'dk', 'query': 'mate.bike'}

# passing url and parameters
res = GetResponse(url).get(params=params)
print(res)

# passing only url
info_url = f'https://www.trustpilot.com/businessunit/{res["businessUnits"][0]["id"]}/companyinfobox'
print(GetResponse(info_url).get())

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

hygge-0.1.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

hygge-0.1.2-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

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