pyscrapers.core package¶
Submodules¶
pyscrapers.core.ffprobe module¶
This is a module that returns information about video streams based on running ffprobe as a subprocess.
References: - http://stackoverflow.com/questions/3844430/how-to-get-the-duration-of-a-video-in-python/3844467
- pyscrapers.core.ffprobe.duration(vid_file_path)[source]¶
Video’s duration in seconds, return a float number
pyscrapers.core.ext_requests module¶
- class pyscrapers.core.ext_requests.ExtSession(base: str = '')[source]¶
Bases:
Session
Inherit from requests.Session and add capabilities
pyscrapers.core.url_set module¶
pyscrapers.core.utils module¶
This module is s set of utilities for this entire project
- pyscrapers.core.utils.add_http(url, main_url)[source]¶
add two urls together :param url: :param main_url: :return:
- pyscrapers.core.utils.get_http_status_string(code: int)[source]¶
This function returns a description of an HTTP status code (404 - not found etc). Unfortunately, the requests module does not provide a clean API for this so we must access a protected member (underscore member) of ‘requests.status_code’. See: https://stackoverflow.com/questions/24718557/get-the-description-of-a-status-code-in-python-requests :param code: :return: