I am new here and just tried to make a scheduled task, which resulted in the error from the title.
- On my computer the script is running
- I installed the module linkedin with pip3.6
- When googling I found a lot about circular dependencies - not the case here I guess
Here is the code:
from linkedin import linkedin import time from bs4 import BeautifulSoup from urllib import request application = linkedin.LinkedInApplication(token=TOKEN_PAUL) date_today = time.strftime("%d.%m.%Y") link_to_share = "https://www.random.com/" html = request.urlopen(link_to_share).read().decode('utf8') soup = BeautifulSoup(html, 'html.parser') title = soup.find('title') print(application.submit_share(comment=None, title=title.string, description=None, submitted_url=link_to_share))
Perhaps anyone can help? Thank you.
Edit: The file was created on Windows. Do I have to use dos2unix or something similar? Had this issue in the past on another server