Metadata-Version: 2.1
Name: zf-lox
Version: 3.1.0
Summary: Lox extracts data from LinkedIn posts and saves it to Notion
Author: Zeff Muks
Author-email: zeffmuks@gmail.com
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: linkedin-api>=2.3.1
Requires-Dist: loguru>=0.7.2
Requires-Dist: pydantic>=2.7.4
Requires-Dist: requests>=2.32.3
Requires-Dist: tqdm>=4.66.5
Requires-Dist: zf-perse>=1.3.0

# Lox

[![PyPI version](https://badge.fury.io/py/zf-lox.svg)](https://badge.fury.io/py/zf-lox)

![Perse](https://zf-static.s3.us-west-1.amazonaws.com/lox-logo128.png)</p>

Lox is a tool for generating leads from LinkedIn. It can open linkedin pages, parse content and extract email.
It integrates with Notion and capable of saving the extracted leads into a Notion database.

### Usage

```bash
lox --url {linkedin-post-url}
```

### Features

It's core features includes:

- Ability to scrape data from LinkedIn posts or feed
- Automatic creation of data model from Notion datbase
- Integration with Notion to save the extracted data

You can install Perse using pip:

```bash
pip install zf-lox

mkdir -p ~/.lox
```

Create a `config` file with the following:

```bash
[linkedin]
email = {your-linkedin-email}
password = {your-linkedin-password}

[openai]
api_key = {your-openai-api-key}

[notion]
api_key = {your-notion-api-key}
database_id = {your-notion-database-id}
```

Export cookies from LinkedIn using [EditThisCookies](https://chromewebstore.google.com/detail/editthiscookies/hlgpnddmgbhkmilmcnejaibhmoiljhhb) and save it in `~/.lox/cookies.json`

## License

[MIT License](./LICENSE)

