Metadata-Version: 2.1
Name: staffspy
Version: 0.1.0
Summary: Company staff scraper library for LinkedIn
Author: Cullen Watson
Author-email: cullen@bunsly.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

**StaffSpy** is a staff scraper library for LinkedIn companies.

## Features

- Scrapes all staff from a company on **LinkedIn**
- Aggregates the employees in a Pandas DataFrame

### Installation

```
pip install -U staffspy
```

_Python version >= [3.10](https://www.python.org/downloads/release/python-3100/) required_


### Usage

```python
from staffspy import scrape_jobs

staff = scrape_staff(
    company="openai" 
    
    # optional filters
    # search_term="software engineer",
    # location="Dallas, TX",
    # results_wanted=20,
)
print(f"Found {len(staff)} staff")
print(staff.head())
staff.to_csv("jobs.csv", index=False)
```
A browser will open to sign in to LinkedIn. Press enter after signing in to begin scraping. Ctrl-c to stop scraping.

### Staff Schema

```plaintext
Staff
├── name
├── username
├── about
├── skills
├── location
├── experiences
│   ├── position
│   ├── company
│   ├── location
│   ├── duration
│   ├── from_date
│   └── to_date
├── educations
    ├── school_name
    ├── degree
    ├── location
    ├── duration
    ├── from_date
    └── to_date
```


## Frequently Asked Questions

---

**Q: Can I get my account banned?**  
**A:** It is a possiblity, although it has not happened to me. Use at your own risk.

**Q: Other issues?**  
**A:** If problems
persist, [submit an issue](https://github.com/cullenwatson/StaffSpy/issues).
---

