Skip to main content

Application Hacking Interface. An HTTP API client helper for "unofficial" APIs.

Project description

Application Hacking Interface

Using the simple HTTPClient

from logging import *
c = ahi.HTTPClient(cache_ttl=60, force_wait_interval=1, auto_adjust_for_rate_limiting=True, logging_level=DEBUG, proxy='http://127.0.0.1:8080', verify=True, allow_redirects=False, timeout=None)
resp = c.get('http://example.com/')
print(resp)

Using the Selenium driver for Firefox

from logging import *
from selenium.webdriver.common.keys import Keys
ff = ahi.SeleniumFirefox(headless=True, force_wait_interval=timedelta(seconds=0), logging_level=DEBUG)
ff.get('https://example.com/')
ff.html.css('#LoginForm_Password').send_keys('P4$$w0rd')
ff.html.css('#LoginForm_Password').send_keys(Keys.RETURN)
ff.execute_script('''SetLocation('\x2Fdocs\x2FProMyPlanning.aspx?_Division_=549942',event, 0)''')
ff.html.css('#Reports_Reports_Reports_MyPlanning').click()
print(ff.html)

Converting from a curl command line

girl --curl https://example.com/

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

ahi-0.19.34.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ahi-0.19.34-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file ahi-0.19.34.tar.gz.

File metadata

  • Download URL: ahi-0.19.34.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/6.14.2-arch1-1

File hashes

Hashes for ahi-0.19.34.tar.gz
Algorithm Hash digest
SHA256 5755450b915b856a1da98cba093bd68d2b83e77289cf44c5eb5a8f7691ee15c2
MD5 08ddff5a4ae07884ebe0a1cbb16c9488
BLAKE2b-256 75eb0020b160001f4b65d15f6cb327965e278b6ef3229b77a3f8213802a83e05

See more details on using hashes here.

File details

Details for the file ahi-0.19.34-py3-none-any.whl.

File metadata

  • Download URL: ahi-0.19.34-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/6.14.2-arch1-1

File hashes

Hashes for ahi-0.19.34-py3-none-any.whl
Algorithm Hash digest
SHA256 45a7ab0f70b7a9dfc572cbf9e1cb3441a9876be441dbe3772b36eeda049f2bd5
MD5 fb0edd9cae8e36f34acafd3049958615
BLAKE2b-256 42299a449fde02bd90a8da7c7a620ae9b3a5039634588dafffdde96f7f64b77e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page