I\'ve written a script in python in combination with selenium to download few document files (ending with .doc) from a webpage. The reason I do not wish to use request
Use pathlib library in Python 3 or the pathlib2 library for Python 2 to handle paths. It gives you an object-oriented way to work with files and directories. Also it has PurePath object, which can work with paths without even touching the filesystem.