Metadata-Version: 2.1
Name: zf-lox
Version: 2.2.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: annotated-types==0.7.0
Requires-Dist: anyio==4.4.0
Requires-Dist: beautifulsoup4==4.12.3
Requires-Dist: bs4==0.0.2
Requires-Dist: certifi==2024.8.30
Requires-Dist: charset-normalizer==3.3.2
Requires-Dist: distro==1.9.0
Requires-Dist: greenlet==3.0.3
Requires-Dist: h11==0.14.0
Requires-Dist: httpcore==1.0.5
Requires-Dist: httpx==0.27.2
Requires-Dist: idna==3.10
Requires-Dist: jiter==0.5.0
Requires-Dist: linkedin-api==2.3.1
Requires-Dist: loguru==0.7.2
Requires-Dist: lxml==5.3.0
Requires-Dist: openai==1.45.1
Requires-Dist: playwright==1.47.0
Requires-Dist: pydantic==2.9.1
Requires-Dist: pydantic_core==2.23.3
Requires-Dist: pyee==12.0.0
Requires-Dist: python-dotenv==1.0.1
Requires-Dist: requests==2.32.3
Requires-Dist: sniffio==1.3.1
Requires-Dist: soupsieve==2.6
Requires-Dist: tqdm==4.66.5
Requires-Dist: typing_extensions==4.12.2
Requires-Dist: urllib3==2.2.3
Requires-Dist: zf-perse==1.1.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)

