A Python wrapper for the HQData API
Project description
Your Package Name
Description
This is a Python package that provides a convenient wrapper for interacting with the HQData API. It allows you to easily run and fetch job/result data from the HQData service.
Installation
You can install the package using pip:
pip install hqdata-api-wrapper
Examples
Here's a simple example of how to use the HQData class from the hqdata_api_wrapper package:
from hqdata_api_wrapper import HQData
# Create an instance of YourClass
wroker = HQData(apikey="your_api_key") #optionally disable auto fetching with autofetch=False to just return the jobid's
# Example: run scrape module
result = wroker.run(module="scrape", payload={"url": "https://hqdata.com", "contact_details": False, "recursive_contact_details": False, "pattern_scan": False, "js_scenario": "click://button[@aria-label='Example Xpath'];send_keys://input[@class='example']:Test Value;scroll:y:750"})
print(result)
# Example: fetch result
result = worker.fetch(id=job_id)
# Example: fetch html of scraping job
result = worker.fetch(id=job_id, fetch="html")
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
File details
Details for the file hqdata_api_wrapper-0.0.3.tar.gz.
File metadata
- Download URL: hqdata_api_wrapper-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba63b5c8e5e7f4659402f91fbd8ea90c98bce7c00f4249acf254b4c8da23157f
|
|
| MD5 |
9e7e5ed722ade3d1d9250c9985afa735
|
|
| BLAKE2b-256 |
d0fd0eb6536bd9df351463a32efadd0bd0fed458df8008bab9d3ee21fe07d275
|