Metadata-Version: 2.1
Name: cvpartnerpy
Version: 0.0.2
Summary: A python package for scraping cvpartner api
Home-page: https://github.com/peakBreaker/cvpartnerpy
Author: Anders L. Hurum
Author-email: andershurum@gmail.com
License: All rights reserved
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.5.0
Description-Content-Type: text/markdown
Requires-Dist: certifi (==2020.11.8)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: idna (==2.10)
Requires-Dist: requests (==2.25.0)
Requires-Dist: urllib3 (==1.26.2)


## CVPartner scraper

This is a package for scraping the cvpartner api

### Getting started

Once this is in the package index:
`$ pip install cvpartnerpy`

#### Usage

The package has support for getting user metadata and CVs attached to users.
This can be used to scrape out all user CVs from the api:

```python

cvp = CVPartner(org='myorg', api_key=os.environ['CVPARTNER_API_KEY'])

with open('user.ndjson', 'w') as f:
  for u in cvp.get_users_from_api():
      user_id = u['user_id']
      cv_id = u['default_cv_id']
      user_cv = cvp.get_user_cv(user_id, cv_id)
      f.write(json.dumps(user_cv))
```


