Metadata-Version: 2.1
Name: hqdata_api_wrapper
Version: 0.0.3
Summary: A Python wrapper for the HQData API
Home-page: https://hqdata.com
Author: Marco Capuano
Author-email: marco.capuano@starux.ch
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# Your Package Name

[![PyPI Version](https://img.shields.io/pypi/v/hqdata-api-wrapper.svg)](https://pypi.org/project/hqdata-api-wrapper/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## 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:

```bash
pip install hqdata-api-wrapper
```

## Examples

Here's a simple example of how to use the `HQData` class from the `hqdata_api_wrapper` package:

```python
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")
```
