LinkedBot | Automatize conexões no linkedin | Portal library
kandi X-RAY | LinkedBot Summary
kandi X-RAY | LinkedBot Summary
[ATENCAO - script feito afins de estudo e compartilhamento de conhecimento, usar esse script de maneira errada vai contra as politicas do linkedin]. Automatize conexões no linkedin.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get home page
LinkedBot Key Features
LinkedBot Examples and Code Snippets
Community Discussions
Trending Discussions on LinkedBot
QUESTION
I have this problem that I want to automate a script. And in passed projects I've used python scheduler for this. But for this project I'm unsure how to handle this.
The problem is that the code works with login details that are outside the code and entered in the commandline when launching the script.
ex. python scriptname.py email@youremail.com password
How can I automate this with python scheduler? The code that is in 'scriptname.py' is:
...ANSWER
Answered 2018-May-08 at 11:56Have you tried using LinkedIn's REST Api instead of retrieving heavy pages, filling in some form and sending it back?
Your code is prone to be broken whenever LinkedIn changes some elements in their page. Whereas the Api is a contract between LinkedIn and the users.
Check here https://developer.linkedin.com/docs/rest-api and there https://developer.linkedin.com/docs/guide/v2/concepts/methods
CredentialsSo that you don't have to pass your credentials through command line (especially your password, which will be readable in clear through history), you should either
- use a config file (with your Api Key) and read it with ConfigParser (or anything else, depending on the format of your config file (json, python, etc...)
- or set them into your environment variables.
Moreover, for the scheduling part, you can use cron.
Using CeleryIf you're looking for a 100% Python solution, you can use the excellent Celery project. Check its periodic tasks.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LinkedBot
You can use LinkedBot like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page