Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyism committed Dec 19, 2017
1 parent 56fe046 commit b93b6ea
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ person = Person("https://www.linkedin.com/in/andre-iguodala-65b48ab5")
Overall, to a Person object can be created with the following inputs:

```python
Person( linkedin_url=None, experiences = [], educations = [], driver = None)
Person( linkedin_url=None, experiences = [], educations = [], driver = None, scrape = True)
```
#### `linkedin_url`
This is the linkedin url of their profile
Expand All @@ -42,6 +42,9 @@ For example
driver = webdriver.Chrome()
person = Person("https://www.linkedin.com/in/andre-iguodala-65b48ab5", driver = driver)
```

#### `scrape`
When this is **True**, the scraping happens automatically. To scrape afterwards, that can be run by the `scrape()` function from the `Person` object.

## Versions
**1.1.x**
Expand Down
54 changes: 54 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,57 @@ To use it, just create the class
from linkedin_user_scraper.scraper import Person
person = Person("https://www.linkedin.com/in/andre-iguodala-65b48ab5")
API
---

Overall, to a Person object can be created with the following inputs:

.. code:: python
Person( linkedin_url=None, experiences = [], educations = [], driver = None, scrape = True)
``linkedin_url``
^^^^^^^^^^^^^^^^

This is the linkedin url of their profile

``experiences``
^^^^^^^^^^^^^^^

This is the past experiences they have. A list of
``linkedin_user_scraper.scraper.Experience``

``educations``
^^^^^^^^^^^^^^

This is the past educations they have. A list of
``linkedin_user_scraper.scraper.Education``

``driver``
^^^^^^^^^^

This is the driver from which to scraper the Linkedin profile. A driver
using Chrome is created by default. However, if a driver is passed in,
that will be used instead.

For example

.. code:: python
driver = webdriver.Chrome()
person = Person("https://www.linkedin.com/in/andre-iguodala-65b48ab5", driver = driver)
``scrape``
^^^^^^^^^^

When this is **True**, the scraping happens automatically. To scrape
afterwards, that can be run by the ``scrape()`` function from the
``Person`` object.

Versions
--------

**1.1.x** \* Addes additional API where user can use their own webdriver

**1.0.x** \* first publish and fixes

0 comments on commit b93b6ea

Please sign in to comment.