This script scrapes data from a user's LinkedIn.
You will need Pipenv to install dependencies for this project, and a recent version of Python 3.x.
To install the production dependencies, just run
pipenv syncYou will need to provide the LinkedIn Username and Password on the command line or add them to .secrets.toml - see secrets.example.toml for a template to copy into the correct location.
After installing the dependencies and adding the necessary configuration, run the application to see usage information with
pipenv run mainor, to be explicit,
pipenv run python src/main.pyThe main shortcut is defined in the Pipfile to make it easier to
interact with the application. See the defined shortcuts with the command pipenv scripts
To run multiple commands in a row, it may be easier to interact with this application in a shell session with the associated Virtualenv activated - to start one, run
pipenv shellIn this shell, commands like python src/main.py can be run without reference
to pipenv.
Pipenv is an application that makes it easy to work with application dependencies and virtual environments. Isolating dependencies for different applications from each other using a virtual environment is a common practice that pipenv implements along with many other Python ecosystem best practices. See e.g. for more information about virtual environments.
Starting a new project with pipenv is easy - just run
pipenv --threeto create a new virtualenv with Python 3 for your project.
To install the dependencies needed to develop the project, run
pipenv install --devInstall a new package, for instance, dynaconf, with
pipenv install dynaconfAfter adding the packages you need, generate a new Pipfile.lock with
pipenv lockAs this application interfaces with LinkedIn through the linkedin-api, we require a valid LinkedIn username and password. We manage configuration using the dynaconf package. supports securely managing configuration parameters. The CLI is built with Click, which is used for the CLI in the Flask project.