request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread F Massion
Hi, I would like to get information from Wikipedia articles and I am testing the connection to Wikipedia. I am running Python 3.6.2 on Windows 10. I get certificate errors for all pages with https. Any suggestions are welcome! Here my code: import requests, bs4 from bs4 import BeautifulSoup

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-12 Thread F Massion
Am Dienstag, 12. Dezember 2017 14:33:42 UTC+1 schrieb Jon Ribbens: > On 2017-12-11, F Massion wrote: > > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed > > (_ssl.c:748) > > Try `pip install certifi` certifi was installed. If I make the following

Variable number of arguments

2018-12-17 Thread F Massion
My script is used by a web interface which gets some parameters from a form. The parameters are passed on as arguments like this: (...) def start(self, _Inputfile ,_Outputfile ,_Stopwordsfile) As long as the number of arguments is set (i.e. 3), there are no problems running the script. Currentl