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
Release history Release notifications | RSS feed
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.38.tar.gz
(32.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ahi-0.19.38-py3-none-any.whl
(41.5 kB
view details)
File details
Details for the file ahi-0.19.38.tar.gz.
File metadata
- Download URL: ahi-0.19.38.tar.gz
- Upload date:
- Size: 32.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3426652cda95331818b24c6440d3d9fe73fcbecc3963de125b8242de65638f8
|
|
| MD5 |
4373a6a6a03a9f19d9bbbc29de26bb96
|
|
| BLAKE2b-256 |
d8ef5f7f551fe49046300b815d4673faafab7405145b86dc2f0580f0ce20252c
|
File details
Details for the file ahi-0.19.38-py3-none-any.whl.
File metadata
- Download URL: ahi-0.19.38-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0610aca7f03cab5e9ac7671253bd180f3e610290fa6220179a09b6d084203866
|
|
| MD5 |
9a6e2f9efd36baef9cc30963906b5117
|
|
| BLAKE2b-256 |
ce0ca5ab933c517c582e52a15b2732189ed1aef23cd064d79e5dd20dcf9bcc03
|