semvec/pypi-packages huggingface dataset:
pyosintleak 1.0.2
pyosintleak is a library designed for utilizing the osintleak API, facilitating integration and automation of open-source intelligence operations.
Requires Python: >=3
Keywords: osintleak, osint, leak, breach, search, ol, pentesting

# pyosintleak
![image](https://github.com/OsintLeak/pyosintleak/assets/28790962/c24e8b19-545e-4e05-b682-d6fc3b8b41cb)

pyosintleak is a Python library designed to leverage the capabilities of the osintleak API, streamlining the integration and automation of open-source intelligence (OSINT) operations.

## Installation

You can install pyosintleak using pip:

```bash
pip install pyosintleak
```

Alternatively, you can clone the repository from GitHub:

```bash
git clone https://github.com/osintleak/pyosintleak.git
cd pyosintleak
pip install .
```

## Usage

### Command Line Interface (CLI)

pyosintleak also comes with a command line interface (CLI) tool to interact with the API conveniently.

#### Setting API Key

Before using the CLI tool, you need to set your API key. This key is essential for accessing the osintleak API. You can set or update the API key using the following command:

```bash
osintleak --key <your_api_key>
```

#### CLI Options

- **-q, --query**: Set search query (e.g., `-q osintleak.com`)
- **-r, --result_id**: Fetch recent search by ID (e.g., `-r <ID>`)
- **-t, --type**: Set search type (e.g., `-t url`). Default is 'username'
- **-d, --datasets**: Set datasets (e.g., `-d SL,DB,D2`). Default is ''
- **--ss, --similar**: Enable similar search
- **-p, --page**: Set page number (e.g., `-p 1`). Default is 1
- **--ps, --page_size**: Set page size (e.g., `-p 20`). Default is 20
- **-o, --output**: Specify output file (optional)
- **-s, --silent**: Enable silent mode (optional)
- **--key**: Change API key (optional)

#### Example Usage

```bash
# Set API key
osintleak --key <your_api_key>

# Perform a search
osintleak -q ahmed

# Fetch recent search results by ID
osintleak -r <result_id> -p 2

# Save output to a file
osintleak -q example.com -t url -o output.txt
```

Feel free to explore more options and functionalities by checking the help:

```bash
osintleak --help
```

## Contributing

If you encounter any issues or have suggestions for improvements, please feel free to contribute by opening an issue or submitting a pull request on [GitHub](https://github.com/osintleak/pyosintleak). Your feedback is highly appreciated!
NameExtractor 1.0.4
Name Extractor is a small AI program to extract name and gender from characters in text.

# Name Extractor
## Name Extractor is a small AI program that analyzes text for characters and retrieves their full names and genders

### How to use

#### Install NameExtractor: 
```bash
pip install NameExtractor
```

#### Use Name Extractor in your code:

```python
import NameExtractor
extractor = NameExtractor.NameExtractor("John Robert Smith and Mary Anne Johnson went to the park.")

#install NLTK resources
extractor.install()

#extract names
extracted_names = extractor.extract_names()

#determine genders
names_with_genders = extractor.determine_genders(extracted_names)

for name in names_with_genders:
    middlenames_str = ', '.join(name.middlenames) + ', ' if name.middlenames else ''
    print(f"Name: {name.text}, Gender: {name.gender}, Last Name: {name.surname}, Middle Names: {middlenames_str}")

```

### More features coming soon!