Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 662 Bytes

python.rst

File metadata and controls

31 lines (20 loc) · 662 Bytes

HoverPy

To get started:

sudo pip install hoverpy
python

And in Python you can simply get started with:

import hoverpy
import requests

# capture mode
with hoverpy.HoverPy(capture=True) as hp:
    data = requests.get("http://time.jsontest.com/").json()

# simulation mode
with hoverpy.HoverPy() as hp:
    simData = requests.get("http://time.jsontest.com/").json()
    print(simData)

assert(data["milliseconds_since_epoch"] == simData["milliseconds_since_epoch"])

For more information, read the HoverPy documentation.