[issue43597] robotparser should support specifying SSL context

2021-04-06 Thread Tarun Chinmai Sekar
Tarun Chinmai Sekar added the comment: I am writing a web scraper, that runs in a container that has CA-Certificates stored in a non-standard location. The Ca-Certificates are managed by Certifi. By allowing to override the sslcontext, it is possible for the user to construct a sslcontext

[issue43597] robotparser should support specifying SSL context

2021-04-06 Thread Berker Peksag
Berker Peksag added the comment: I'm not opposing to the idea, but what's the practical use case here? I haven't seen a case where you needed to pass a custom SSLContext in order to fetch the robots.txt file. -- nosy: +berker.peksag versions: -Python 3.6, Python 3.7, Python 3.8,

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- pull_requests: +23746 pull_request: https://github.com/python/cpython/pull/24986 ___ Python tracker ___

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- keywords: +patch pull_requests: +23744 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24984 ___ Python tracker

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
New submission from Tarun Chinmai Sekar : IMO this could be enhanced by adding a sslcontext parameter to read method a sample change would it could look like ``` def read(self, sslcontext=None): """Reads the robots.txt URL and feeds it to the parser.""" try: if sslcontext:

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- nosy: Tchinmai7 priority: normal severity: normal status: open title: robotparser should support specifying SSL context type: enhancement versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___