adding plex-posters binary
@@ -1 +1,3 @@
|
||||
# plex_posters
|
||||
|
||||
A script to pull the top 10 hottest posters from /r/moviepostersporn
|
||||
|
||||
1381
plex-posters/build/test_plex_posters/Analysis-00.toc
Normal file
206
plex-posters/build/test_plex_posters/EXE-00.toc
Normal file
@@ -0,0 +1,206 @@
|
||||
('/Users/dtomlinson/git-repos/projects/plex-posters/dist/test_plex_posters',
|
||||
True,
|
||||
False,
|
||||
False,
|
||||
None,
|
||||
None,
|
||||
False,
|
||||
False,
|
||||
None,
|
||||
True,
|
||||
'test_plex_posters.pkg',
|
||||
[('PYZ-00.pyz',
|
||||
'/Users/dtomlinson/git-repos/projects/plex-posters/build/test_plex_posters/PYZ-00.pyz',
|
||||
'PYZ'),
|
||||
('_struct',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_struct.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('zlib',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/zlib.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('struct',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/struct.pyo',
|
||||
'PYMODULE'),
|
||||
('pyimod01_os_path',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyimod01_os_path.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod02_archive',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyimod02_archive.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod03_importers',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.pyc',
|
||||
'PYMODULE'),
|
||||
('pyiboot01_bootstrap',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyiboot01_bootstrap.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_multiprocessing',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/rthooks/pyi_rth_multiprocessing.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_certifi',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/rthooks/pyi_rth_certifi.py',
|
||||
'PYSOURCE'),
|
||||
('test_plex_posters',
|
||||
'/Users/dtomlinson/git-repos/projects/plex-posters/tests/testimport/test_plex_posters.py',
|
||||
'PYSOURCE'),
|
||||
('.Python',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/bin/../.Python',
|
||||
'BINARY'),
|
||||
('unicodedata',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/unicodedata.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_random',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_random.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('select',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/select.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_posixsubprocess',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_posixsubprocess.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_asyncio',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_asyncio.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_contextvars',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_contextvars.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_queue',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_queue.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('mmap',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/mmap.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_posixshmem',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_posixshmem.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_ctypes',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_ctypes.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('array',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/array.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_multiprocessing',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_multiprocessing.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('pyexpat',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/pyexpat.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_scproxy',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_scproxy.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('termios',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/termios.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_decimal',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_decimal.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('readline',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/readline.so',
|
||||
'EXTENSION'),
|
||||
('_opcode',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_opcode.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_pickle',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_pickle.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_hashlib',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_hashlib.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha3',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha3.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_blake2',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_blake2.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha256',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha256.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_md5',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_md5.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha1',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha1.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha512',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha512.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_bisect',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_bisect.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('math',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/math.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_csv',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_csv.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('binascii',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/binascii.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('resource',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/resource.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('grp',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/grp.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_lzma',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_lzma.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_bz2',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_bz2.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_datetime',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_datetime.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_socket',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_socket.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_ssl',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_ssl.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_multibytecodec',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_multibytecodec.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_jp',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_jp.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_tw',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_tw.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_cn',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_cn.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_iso2022',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_iso2022.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_kr',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_kr.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_hk',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_hk.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_heapq',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_heapq.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_json',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_json.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('libcrypto.1.0.0.dylib',
|
||||
'/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib',
|
||||
'BINARY'),
|
||||
('libssl.1.0.0.dylib',
|
||||
'/usr/local/opt/openssl/lib/libssl.1.0.0.dylib',
|
||||
'BINARY'),
|
||||
('libz.1.dylib', '/usr/local/opt/zlib/lib/libz.1.dylib', 'BINARY'),
|
||||
('liblzma.5.dylib', '/usr/local/opt/xz/lib/liblzma.5.dylib', 'BINARY'),
|
||||
('base_library.zip',
|
||||
'/Users/dtomlinson/git-repos/projects/plex-posters/build/test_plex_posters/base_library.zip',
|
||||
'DATA'),
|
||||
('certifi/cacert.pem',
|
||||
'/Users/dtomlinson/.virtualenvs/plex-posters-test/lib/python3.8/site-packages/certifi/cacert.pem',
|
||||
'DATA')],
|
||||
[],
|
||||
False,
|
||||
False,
|
||||
1574289810,
|
||||
[('run',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/bootloader/Darwin-64bit/run',
|
||||
'EXECUTABLE')])
|
||||
BIN
plex-posters/build/test_plex_posters/PKG-00.pkg
Normal file
200
plex-posters/build/test_plex_posters/PKG-00.toc
Normal file
@@ -0,0 +1,200 @@
|
||||
('/Users/dtomlinson/git-repos/projects/plex-posters/build/test_plex_posters/PKG-00.pkg',
|
||||
{'BINARY': 1,
|
||||
'DATA': 1,
|
||||
'EXECUTABLE': 1,
|
||||
'EXTENSION': 1,
|
||||
'PYMODULE': 1,
|
||||
'PYSOURCE': 1,
|
||||
'PYZ': 0},
|
||||
[('PYZ-00.pyz',
|
||||
'/Users/dtomlinson/git-repos/projects/plex-posters/build/test_plex_posters/PYZ-00.pyz',
|
||||
'PYZ'),
|
||||
('_struct',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_struct.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('zlib',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/zlib.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('struct',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/struct.pyo',
|
||||
'PYMODULE'),
|
||||
('pyimod01_os_path',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyimod01_os_path.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod02_archive',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyimod02_archive.pyc',
|
||||
'PYMODULE'),
|
||||
('pyimod03_importers',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.pyc',
|
||||
'PYMODULE'),
|
||||
('pyiboot01_bootstrap',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/pyiboot01_bootstrap.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_multiprocessing',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/rthooks/pyi_rth_multiprocessing.py',
|
||||
'PYSOURCE'),
|
||||
('pyi_rth_certifi',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/rthooks/pyi_rth_certifi.py',
|
||||
'PYSOURCE'),
|
||||
('test_plex_posters',
|
||||
'/Users/dtomlinson/git-repos/projects/plex-posters/tests/testimport/test_plex_posters.py',
|
||||
'PYSOURCE'),
|
||||
('.Python',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/bin/../.Python',
|
||||
'BINARY'),
|
||||
('unicodedata',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/unicodedata.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_random',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_random.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('select',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/select.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_posixsubprocess',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_posixsubprocess.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_asyncio',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_asyncio.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_contextvars',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_contextvars.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_queue',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_queue.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('mmap',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/mmap.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_posixshmem',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_posixshmem.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_ctypes',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_ctypes.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('array',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/array.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_multiprocessing',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_multiprocessing.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('pyexpat',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/pyexpat.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_scproxy',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_scproxy.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('termios',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/termios.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_decimal',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_decimal.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('readline',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/readline.so',
|
||||
'EXTENSION'),
|
||||
('_opcode',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_opcode.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_pickle',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_pickle.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_hashlib',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_hashlib.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha3',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha3.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_blake2',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_blake2.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha256',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha256.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_md5',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_md5.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha1',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha1.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_sha512',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_sha512.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_bisect',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_bisect.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('math',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/math.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_csv',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_csv.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('binascii',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/binascii.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('resource',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/resource.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('grp',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/grp.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_lzma',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_lzma.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_bz2',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_bz2.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_datetime',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_datetime.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_socket',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_socket.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_ssl',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_ssl.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_multibytecodec',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_multibytecodec.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_jp',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_jp.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_tw',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_tw.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_cn',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_cn.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_iso2022',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_iso2022.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_kr',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_kr.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_codecs_hk',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_codecs_hk.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_heapq',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_heapq.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('_json',
|
||||
'/Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/lib-dynload/_json.cpython-38-darwin.so',
|
||||
'EXTENSION'),
|
||||
('libcrypto.1.0.0.dylib',
|
||||
'/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib',
|
||||
'BINARY'),
|
||||
('libssl.1.0.0.dylib',
|
||||
'/usr/local/opt/openssl/lib/libssl.1.0.0.dylib',
|
||||
'BINARY'),
|
||||
('libz.1.dylib', '/usr/local/opt/zlib/lib/libz.1.dylib', 'BINARY'),
|
||||
('liblzma.5.dylib', '/usr/local/opt/xz/lib/liblzma.5.dylib', 'BINARY'),
|
||||
('base_library.zip',
|
||||
'/Users/dtomlinson/git-repos/projects/plex-posters/build/test_plex_posters/base_library.zip',
|
||||
'DATA'),
|
||||
('certifi/cacert.pem',
|
||||
'/Users/dtomlinson/.virtualenvs/plex-posters-test/lib/python3.8/site-packages/certifi/cacert.pem',
|
||||
'DATA')],
|
||||
False,
|
||||
False,
|
||||
False,
|
||||
[])
|
||||
BIN
plex-posters/build/test_plex_posters/PYZ-00.pyz
Normal file
1198
plex-posters/build/test_plex_posters/PYZ-00.toc
Normal file
BIN
plex-posters/build/test_plex_posters/base_library.zip
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
This file lists modules PyInstaller was not able to find. This does not
|
||||
necessarily mean this module is required for running you program. Python and
|
||||
Python 3rd-party packages include a lot of conditional or optional modules. For
|
||||
example the module 'ntpath' only exists on Windows, whereas the module
|
||||
'posixpath' only exists on Posix systems.
|
||||
|
||||
Types if import:
|
||||
* top-level: imported at the top-level - look at these first
|
||||
* conditional: imported within an if-statement
|
||||
* delayed: imported from within a function
|
||||
* optional: imported within a try-except-statement
|
||||
|
||||
IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
|
||||
yourself tracking down the missing module. Thanks!
|
||||
|
||||
missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
|
||||
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
|
||||
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
|
||||
missing module named urllib.getproxies_environment - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.proxy_bypass_environment - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.proxy_bypass - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.getproxies - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.urlencode - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.unquote_plus - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.quote_plus - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.unquote - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named urllib.quote - imported by urllib (conditional), requests.compat (conditional)
|
||||
missing module named _winapi - imported by encodings (delayed, conditional, optional), subprocess (optional), multiprocessing.connection (optional), multiprocessing.reduction (conditional), multiprocessing.shared_memory (conditional), multiprocessing.spawn (delayed, conditional), multiprocessing.heap (conditional), multiprocessing.popen_spawn_win32 (top-level), asyncio.windows_events (top-level), asyncio.windows_utils (top-level)
|
||||
missing module named msvcrt - imported by subprocess (optional), multiprocessing.spawn (delayed, conditional), multiprocessing.popen_spawn_win32 (top-level), asyncio.windows_events (top-level), asyncio.windows_utils (top-level), getpass (optional)
|
||||
missing module named _overlapped - imported by asyncio.windows_events (top-level)
|
||||
missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
|
||||
missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
|
||||
missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
|
||||
missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
|
||||
missing module named winreg - imported by platform (delayed, optional), mimetypes (optional), urllib.request (delayed, conditional, optional), requests.utils (delayed, conditional, optional)
|
||||
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
|
||||
missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
|
||||
missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
|
||||
missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)
|
||||
missing module named vms_lib - imported by platform (delayed, conditional, optional)
|
||||
missing module named java - imported by platform (delayed)
|
||||
missing module named _winreg - imported by platform (delayed, optional), requests.utils (delayed, conditional, optional)
|
||||
missing module named org - imported by pickle (optional)
|
||||
missing module named nt - imported by shutil (conditional), ntpath (optional), pathlib (conditional), os (delayed, conditional, optional), ctypes (delayed, conditional)
|
||||
missing module named 'multiprocessing.forking' - imported by /Users/dtomlinson/.virtualenvs/utility-pyinstaller/lib/python3.8/site-packages/PyInstaller/loader/rthooks/pyi_rth_multiprocessing.py (optional)
|
||||
missing module named StringIO - imported by urllib3.packages.six (conditional), requests.compat (conditional), six (conditional)
|
||||
missing module named Cookie - imported by requests.compat (conditional), websocket._cookiejar (optional)
|
||||
missing module named cookielib - imported by requests.compat (conditional)
|
||||
missing module named urllib2 - imported by requests.compat (conditional)
|
||||
missing module named urlparse - imported by requests.compat (conditional), prawcore.exceptions (conditional)
|
||||
missing module named simplejson - imported by requests.compat (optional)
|
||||
missing module named backports - imported by urllib3.packages.ssl_match_hostname (optional)
|
||||
missing module named Queue - imported by urllib3.util.queue (conditional)
|
||||
missing module named brotli - imported by urllib3.util.request (optional), urllib3.response (optional)
|
||||
missing module named "'urllib3.packages.six.moves.urllib'.parse" - imported by urllib3.request (top-level), urllib3.poolmanager (top-level)
|
||||
runtime module named urllib3.packages.six.moves - imported by http.client (top-level), urllib3.connectionpool (top-level), urllib3.util.response (top-level), 'urllib3.packages.six.moves.urllib' (top-level), urllib3.response (top-level), urllib3.util.queue (top-level)
|
||||
missing module named socks - imported by urllib3.contrib.socks (optional), websocket._http (optional)
|
||||
missing module named _dummy_threading - imported by dummy_threading (optional)
|
||||
missing module named cryptography - imported by urllib3.contrib.pyopenssl (top-level), requests (optional)
|
||||
missing module named 'OpenSSL.crypto' - imported by urllib3.contrib.pyopenssl (delayed)
|
||||
missing module named 'cryptography.x509' - imported by urllib3.contrib.pyopenssl (delayed, optional)
|
||||
missing module named 'cryptography.hazmat' - imported by urllib3.contrib.pyopenssl (top-level)
|
||||
missing module named OpenSSL - imported by urllib3.contrib.pyopenssl (top-level)
|
||||
missing module named wsaccel - imported by websocket._utils (optional)
|
||||
missing module named 'backports.ssl_match_hostname' - imported by websocket._ssl_compat (conditional, optional)
|
||||
missing module named "'six.moves.urllib'.parse" - imported by websocket._url (top-level)
|
||||
missing module named httplib - imported by websocket._handshake (conditional)
|
||||
missing module named 'wsaccel.xormask' - imported by websocket._abnf (conditional, optional)
|
||||
missing module named numpy - imported by websocket._abnf (conditional, optional)
|
||||
15802
plex-posters/build/test_plex_posters/xref-test_plex_posters.html
Normal file
BIN
plex-posters/dist/plex-posters-0.1.0.tar.gz
vendored
Normal file
BIN
plex-posters/dist/plex_posters-0.1.0-py3-none-any.whl
vendored
Normal file
20
plex-posters/dist/praw.ini
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
[DEFAULT]
|
||||
# A boolean to indicate whether or not to check for package updates.
|
||||
check_for_updates=True
|
||||
|
||||
# Object to kind mappings
|
||||
comment_kind=t1
|
||||
message_kind=t4
|
||||
redditor_kind=t2
|
||||
submission_kind=t3
|
||||
subreddit_kind=t5
|
||||
trophy_kind=t6
|
||||
|
||||
# The URL prefix for OAuth-related requests.
|
||||
oauth_url=https://oauth.reddit.com
|
||||
|
||||
# The URL prefix for regular requests.
|
||||
reddit_url=https://www.reddit.com
|
||||
|
||||
# The URL prefix for short URLs.
|
||||
short_url=https://redd.it
|
||||
BIN
plex-posters/dist/test_plex_posters
vendored
Executable file
373
plex-posters/docs/plex_posters/index.html
Normal file
@@ -0,0 +1,373 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
|
||||
<meta name="generator" content="pdoc 0.7.2" />
|
||||
<title>plex_posters API documentation</title>
|
||||
<meta name="description" content="" />
|
||||
<link href='https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css' rel='stylesheet'>
|
||||
<link href='https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/8.0.0/sanitize.min.css' rel='stylesheet'>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">
|
||||
<style>.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^="header-"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{font-weight:bold}#index h4 + ul{margin-bottom:.6em}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>
|
||||
<style media="screen and (min-width: 700px)">@media screen and (min-width:700px){#sidebar{width:30%}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>
|
||||
<style media="print">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:" (" attr(href) ")";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<article id="content">
|
||||
<header>
|
||||
<h1 class="title">Module <code>plex_posters</code></h1>
|
||||
</header>
|
||||
<section id="section-intro">
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">from __future__ import annotations
|
||||
from .__version__ import __version__
|
||||
from .lib import export
|
||||
from typing import Type, TypeVar
|
||||
import praw
|
||||
import requests
|
||||
|
||||
__all__ = []
|
||||
|
||||
T_movie_poster_porn_scraper = TypeVar(
|
||||
'T_movie_poster_porn_scraper', bound="movie_poster_porn_scraper"
|
||||
)
|
||||
|
||||
|
||||
@export
|
||||
class movie_poster_porn_scraper(object):
|
||||
|
||||
"""Poster scraper
|
||||
|
||||
Attributes
|
||||
----------
|
||||
reddit_instance : praw.Reddit
|
||||
A praw instance connected to Reddit
|
||||
"""
|
||||
|
||||
def __init__(self, instance: praw.Reddit) -> None:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
instance : praw.Reddit
|
||||
A praw instance connected to Reddit
|
||||
"""
|
||||
super().__init__()
|
||||
self.reddit_instance = instance
|
||||
|
||||
@classmethod
|
||||
def create_instance(
|
||||
cls: Type(T_movie_poster_porn_scraper),
|
||||
client_id: str,
|
||||
client_secret: str,
|
||||
user_agent: str,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""Connect to reddit
|
||||
|
||||
Parameters
|
||||
----------
|
||||
client_id : str
|
||||
a valid client id
|
||||
client_secret : str
|
||||
the secret key for the client
|
||||
user_agent : str
|
||||
a user agent
|
||||
"""
|
||||
reddit_instance = praw.Reddit(
|
||||
client_id=client_id,
|
||||
client_secret=client_secret,
|
||||
user_agent=user_agent,
|
||||
)
|
||||
|
||||
return cls(reddit_instance)
|
||||
|
||||
def get_hot_posters(
|
||||
self: T_movie_poster_porn_scraper,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""
|
||||
"""
|
||||
self._poster_urls = {}
|
||||
for post in self.reddit_instance.subreddit('MoviePosterPorn').hot(
|
||||
limit=10
|
||||
):
|
||||
print(post.title)
|
||||
print(post.url)
|
||||
# print(dir(post))
|
||||
# self._poster_urls.append(post.url)
|
||||
self._poster_urls[post.title] = post.url
|
||||
print(self._poster_urls)
|
||||
return self
|
||||
|
||||
def get_posters(self: T_movie_poster_porn_scraper):
|
||||
"""download the posters
|
||||
|
||||
Returns
|
||||
-------
|
||||
self
|
||||
"""
|
||||
for title, url in self._poster_urls.items():
|
||||
r = requests.get(url)
|
||||
with open('posters/' + title + '.jpg', 'wb') as p:
|
||||
p.write(r.content)
|
||||
return self</code></pre>
|
||||
</details>
|
||||
</section>
|
||||
<section>
|
||||
<h2 class="section-title" id="header-submodules">Sub-modules</h2>
|
||||
<dl>
|
||||
<dt><code class="name"><a title="plex_posters.lib" href="lib/index.html">plex_posters.lib</a></code></dt>
|
||||
<dd>
|
||||
<section class="desc"></section>
|
||||
</dd>
|
||||
</dl>
|
||||
</section>
|
||||
<section>
|
||||
</section>
|
||||
<section>
|
||||
</section>
|
||||
<section>
|
||||
<h2 class="section-title" id="header-classes">Classes</h2>
|
||||
<dl>
|
||||
<dt id="plex_posters.movie_poster_porn_scraper"><code class="flex name class">
|
||||
<span>class <span class="ident">movie_poster_porn_scraper</span></span>
|
||||
<span>(</span><span>instance)</span>
|
||||
</code></dt>
|
||||
<dd>
|
||||
<section class="desc"><p>Poster scraper</p>
|
||||
<h2 id="attributes">Attributes</h2>
|
||||
<dl>
|
||||
<dt><strong><code>reddit_instance</code></strong> : <code>praw.Reddit</code></dt>
|
||||
<dd>A praw instance connected to Reddit</dd>
|
||||
</dl>
|
||||
<h2 id="parameters">Parameters</h2>
|
||||
<dl>
|
||||
<dt><strong><code>instance</code></strong> : <code>praw.Reddit</code></dt>
|
||||
<dd>A praw instance connected to Reddit</dd>
|
||||
</dl></section>
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">class movie_poster_porn_scraper(object):
|
||||
|
||||
"""Poster scraper
|
||||
|
||||
Attributes
|
||||
----------
|
||||
reddit_instance : praw.Reddit
|
||||
A praw instance connected to Reddit
|
||||
"""
|
||||
|
||||
def __init__(self, instance: praw.Reddit) -> None:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
instance : praw.Reddit
|
||||
A praw instance connected to Reddit
|
||||
"""
|
||||
super().__init__()
|
||||
self.reddit_instance = instance
|
||||
|
||||
@classmethod
|
||||
def create_instance(
|
||||
cls: Type(T_movie_poster_porn_scraper),
|
||||
client_id: str,
|
||||
client_secret: str,
|
||||
user_agent: str,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""Connect to reddit
|
||||
|
||||
Parameters
|
||||
----------
|
||||
client_id : str
|
||||
a valid client id
|
||||
client_secret : str
|
||||
the secret key for the client
|
||||
user_agent : str
|
||||
a user agent
|
||||
"""
|
||||
reddit_instance = praw.Reddit(
|
||||
client_id=client_id,
|
||||
client_secret=client_secret,
|
||||
user_agent=user_agent,
|
||||
)
|
||||
|
||||
return cls(reddit_instance)
|
||||
|
||||
def get_hot_posters(
|
||||
self: T_movie_poster_porn_scraper,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""
|
||||
"""
|
||||
self._poster_urls = {}
|
||||
for post in self.reddit_instance.subreddit('MoviePosterPorn').hot(
|
||||
limit=10
|
||||
):
|
||||
print(post.title)
|
||||
print(post.url)
|
||||
# print(dir(post))
|
||||
# self._poster_urls.append(post.url)
|
||||
self._poster_urls[post.title] = post.url
|
||||
print(self._poster_urls)
|
||||
return self
|
||||
|
||||
def get_posters(self: T_movie_poster_porn_scraper):
|
||||
"""download the posters
|
||||
|
||||
Returns
|
||||
-------
|
||||
self
|
||||
"""
|
||||
for title, url in self._poster_urls.items():
|
||||
r = requests.get(url)
|
||||
with open('posters/' + title + '.jpg', 'wb') as p:
|
||||
p.write(r.content)
|
||||
return self</code></pre>
|
||||
</details>
|
||||
<h3>Static methods</h3>
|
||||
<dl>
|
||||
<dt id="plex_posters.movie_poster_porn_scraper.create_instance"><code class="name flex">
|
||||
<span>def <span class="ident">create_instance</span></span>(<span>client_id, client_secret, user_agent)</span>
|
||||
</code></dt>
|
||||
<dd>
|
||||
<section class="desc"><p>Connect to reddit</p>
|
||||
<h2 id="parameters">Parameters</h2>
|
||||
<dl>
|
||||
<dt><strong><code>client_id</code></strong> : <code>str</code></dt>
|
||||
<dd>a valid client id</dd>
|
||||
<dt><strong><code>client_secret</code></strong> : <code>str</code></dt>
|
||||
<dd>the secret key for the client</dd>
|
||||
<dt><strong><code>user_agent</code></strong> : <code>str</code></dt>
|
||||
<dd>a user agent</dd>
|
||||
</dl></section>
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">@classmethod
|
||||
def create_instance(
|
||||
cls: Type(T_movie_poster_porn_scraper),
|
||||
client_id: str,
|
||||
client_secret: str,
|
||||
user_agent: str,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""Connect to reddit
|
||||
|
||||
Parameters
|
||||
----------
|
||||
client_id : str
|
||||
a valid client id
|
||||
client_secret : str
|
||||
the secret key for the client
|
||||
user_agent : str
|
||||
a user agent
|
||||
"""
|
||||
reddit_instance = praw.Reddit(
|
||||
client_id=client_id,
|
||||
client_secret=client_secret,
|
||||
user_agent=user_agent,
|
||||
)
|
||||
|
||||
return cls(reddit_instance)</code></pre>
|
||||
</details>
|
||||
</dd>
|
||||
</dl>
|
||||
<h3>Methods</h3>
|
||||
<dl>
|
||||
<dt id="plex_posters.movie_poster_porn_scraper.get_hot_posters"><code class="name flex">
|
||||
<span>def <span class="ident">get_hot_posters</span></span>(<span>self)</span>
|
||||
</code></dt>
|
||||
<dd>
|
||||
<section class="desc"></section>
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">def get_hot_posters(
|
||||
self: T_movie_poster_porn_scraper,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""
|
||||
"""
|
||||
self._poster_urls = {}
|
||||
for post in self.reddit_instance.subreddit('MoviePosterPorn').hot(
|
||||
limit=10
|
||||
):
|
||||
print(post.title)
|
||||
print(post.url)
|
||||
# print(dir(post))
|
||||
# self._poster_urls.append(post.url)
|
||||
self._poster_urls[post.title] = post.url
|
||||
print(self._poster_urls)
|
||||
return self</code></pre>
|
||||
</details>
|
||||
</dd>
|
||||
<dt id="plex_posters.movie_poster_porn_scraper.get_posters"><code class="name flex">
|
||||
<span>def <span class="ident">get_posters</span></span>(<span>self)</span>
|
||||
</code></dt>
|
||||
<dd>
|
||||
<section class="desc"><p>download the posters</p>
|
||||
<h2 id="returns">Returns</h2>
|
||||
<dl>
|
||||
<dt><code>self</code></dt>
|
||||
<dd> </dd>
|
||||
</dl></section>
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">def get_posters(self: T_movie_poster_porn_scraper):
|
||||
"""download the posters
|
||||
|
||||
Returns
|
||||
-------
|
||||
self
|
||||
"""
|
||||
for title, url in self._poster_urls.items():
|
||||
r = requests.get(url)
|
||||
with open('posters/' + title + '.jpg', 'wb') as p:
|
||||
p.write(r.content)
|
||||
return self</code></pre>
|
||||
</details>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</article>
|
||||
<nav id="sidebar">
|
||||
<h1>Index</h1>
|
||||
<div class="toc">
|
||||
<ul></ul>
|
||||
</div>
|
||||
<ul id="index">
|
||||
<li><h3><a href="#header-submodules">Sub-modules</a></h3>
|
||||
<ul>
|
||||
<li><code><a title="plex_posters.lib" href="lib/index.html">plex_posters.lib</a></code></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><h3><a href="#header-classes">Classes</a></h3>
|
||||
<ul>
|
||||
<li>
|
||||
<h4><code><a title="plex_posters.movie_poster_porn_scraper" href="#plex_posters.movie_poster_porn_scraper">movie_poster_porn_scraper</a></code></h4>
|
||||
<ul class="">
|
||||
<li><code><a title="plex_posters.movie_poster_porn_scraper.create_instance" href="#plex_posters.movie_poster_porn_scraper.create_instance">create_instance</a></code></li>
|
||||
<li><code><a title="plex_posters.movie_poster_porn_scraper.get_hot_posters" href="#plex_posters.movie_poster_porn_scraper.get_hot_posters">get_hot_posters</a></code></li>
|
||||
<li><code><a title="plex_posters.movie_poster_porn_scraper.get_posters" href="#plex_posters.movie_poster_porn_scraper.get_posters">get_posters</a></code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</main>
|
||||
<footer id="footer">
|
||||
<p>Generated by <a href="https://pdoc3.github.io/pdoc"><cite>pdoc</cite> 0.7.2</a>.</p>
|
||||
</footer>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad()</script>
|
||||
</body>
|
||||
</html>
|
||||
94
plex-posters/docs/plex_posters/lib/index.html
Normal file
@@ -0,0 +1,94 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
|
||||
<meta name="generator" content="pdoc 0.7.2" />
|
||||
<title>plex_posters.lib API documentation</title>
|
||||
<meta name="description" content="" />
|
||||
<link href='https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css' rel='stylesheet'>
|
||||
<link href='https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/8.0.0/sanitize.min.css' rel='stylesheet'>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">
|
||||
<style>.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^="header-"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{font-weight:bold}#index h4 + ul{margin-bottom:.6em}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>
|
||||
<style media="screen and (min-width: 700px)">@media screen and (min-width:700px){#sidebar{width:30%}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>
|
||||
<style media="print">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:" (" attr(href) ")";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<article id="content">
|
||||
<header>
|
||||
<h1 class="title">Module <code>plex_posters.lib</code></h1>
|
||||
</header>
|
||||
<section id="section-intro">
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">import sys
|
||||
|
||||
|
||||
def export(fn):
|
||||
mod = sys.modules[fn.__module__]
|
||||
if hasattr(mod, '__all__'):
|
||||
mod.__all__.append(fn.__name__)
|
||||
else:
|
||||
mod.__all__ = [fn.__name__]
|
||||
return fn</code></pre>
|
||||
</details>
|
||||
</section>
|
||||
<section>
|
||||
</section>
|
||||
<section>
|
||||
</section>
|
||||
<section>
|
||||
<h2 class="section-title" id="header-functions">Functions</h2>
|
||||
<dl>
|
||||
<dt id="plex_posters.lib.export"><code class="name flex">
|
||||
<span>def <span class="ident">export</span></span>(<span>fn)</span>
|
||||
</code></dt>
|
||||
<dd>
|
||||
<section class="desc"></section>
|
||||
<details class="source">
|
||||
<summary>
|
||||
<span>Expand source code</span>
|
||||
</summary>
|
||||
<pre><code class="python">def export(fn):
|
||||
mod = sys.modules[fn.__module__]
|
||||
if hasattr(mod, '__all__'):
|
||||
mod.__all__.append(fn.__name__)
|
||||
else:
|
||||
mod.__all__ = [fn.__name__]
|
||||
return fn</code></pre>
|
||||
</details>
|
||||
</dd>
|
||||
</dl>
|
||||
</section>
|
||||
<section>
|
||||
</section>
|
||||
</article>
|
||||
<nav id="sidebar">
|
||||
<h1>Index</h1>
|
||||
<div class="toc">
|
||||
<ul></ul>
|
||||
</div>
|
||||
<ul id="index">
|
||||
<li><h3>Super-module</h3>
|
||||
<ul>
|
||||
<li><code><a title="plex_posters" href="../index.html">plex_posters</a></code></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><h3><a href="#header-functions">Functions</a></h3>
|
||||
<ul class="">
|
||||
<li><code><a title="plex_posters.lib.export" href="#plex_posters.lib.export">export</a></code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</main>
|
||||
<footer id="footer">
|
||||
<p>Generated by <a href="https://pdoc3.github.io/pdoc"><cite>pdoc</cite> 0.7.2</a>.</p>
|
||||
</footer>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad()</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,17 +1,35 @@
|
||||
from __future__ import annotations
|
||||
from .__version__ import __version__
|
||||
from .lib import export
|
||||
from typing import Type, TypeVar
|
||||
import praw
|
||||
import requests
|
||||
|
||||
__version__ = '0.1.0'
|
||||
__all__ = []
|
||||
|
||||
T_movie_poster_porn_scraper = TypeVar(
|
||||
'T_movie_poster_porn_scraper', bound="movie_poster_porn_scraper"
|
||||
)
|
||||
|
||||
|
||||
@export
|
||||
class movie_poster_porn_scraper(object):
|
||||
|
||||
"""Poster scraper
|
||||
|
||||
Attributes
|
||||
----------
|
||||
reddit_instance : praw.Reddit
|
||||
A praw instance connected to Reddit
|
||||
"""
|
||||
|
||||
def __init__(self, instance: praw.Reddit) -> None:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
instance : praw.Reddit
|
||||
A praw instance connected to Reddit
|
||||
"""
|
||||
super().__init__()
|
||||
self.reddit_instance = instance
|
||||
|
||||
@@ -22,7 +40,17 @@ class movie_poster_porn_scraper(object):
|
||||
client_secret: str,
|
||||
user_agent: str,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
"""Connect to reddit
|
||||
|
||||
Parameters
|
||||
----------
|
||||
client_id : str
|
||||
a valid client id
|
||||
client_secret : str
|
||||
the secret key for the client
|
||||
user_agent : str
|
||||
a user agent
|
||||
"""
|
||||
reddit_instance = praw.Reddit(
|
||||
client_id=client_id,
|
||||
client_secret=client_secret,
|
||||
@@ -34,7 +62,8 @@ class movie_poster_porn_scraper(object):
|
||||
def get_hot_posters(
|
||||
self: T_movie_poster_porn_scraper,
|
||||
) -> T_movie_poster_porn_scraper:
|
||||
|
||||
"""
|
||||
"""
|
||||
self._poster_urls = {}
|
||||
for post in self.reddit_instance.subreddit('MoviePosterPorn').hot(
|
||||
limit=10
|
||||
@@ -48,20 +77,14 @@ class movie_poster_porn_scraper(object):
|
||||
return self
|
||||
|
||||
def get_posters(self: T_movie_poster_porn_scraper):
|
||||
"""download the posters
|
||||
|
||||
Returns
|
||||
-------
|
||||
self
|
||||
"""
|
||||
for title, url in self._poster_urls.items():
|
||||
r = requests.get(url)
|
||||
with open('posters/' + title + '.jpg', 'wb') as p:
|
||||
p.write(r.content)
|
||||
return self
|
||||
|
||||
|
||||
inst = movie_poster_porn_scraper.create_instance(
|
||||
client_id='yb7NnBPh4riSnw',
|
||||
client_secret='-3Z0XUXD2XCiksfX26jORG107fA',
|
||||
user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0)'
|
||||
'Gecko/20100101 Firefox/70.0',
|
||||
)
|
||||
|
||||
print(inst.reddit_instance.read_only)
|
||||
|
||||
inst.get_hot_posters().get_posters()
|
||||
|
||||
1
plex-posters/src/plex_posters/__version__.py
Normal file
@@ -0,0 +1 @@
|
||||
__version__ = '0.1.0'
|
||||
10
plex-posters/src/plex_posters/lib/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
|
||||
def export(fn):
|
||||
mod = sys.modules[fn.__module__]
|
||||
if hasattr(mod, '__all__'):
|
||||
mod.__all__.append(fn.__name__)
|
||||
else:
|
||||
mod.__all__ = [fn.__name__]
|
||||
return fn
|
||||
|
Before Width: | Height: | Size: 587 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 333 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 471 KiB |
|
Before Width: | Height: | Size: 3.5 MiB |
33
plex-posters/test_plex_posters.spec
Normal file
@@ -0,0 +1,33 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['tests/testimport/test_plex_posters.py'],
|
||||
pathex=['/Users/dtomlinson/.virtualenvs/plex-posters-test/lib/python3.8/site-packages', '/Users/dtomlinson/git-repos/projects/plex-posters'],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False)
|
||||
pyz = PYZ(a.pure, a.zipped_data,
|
||||
cipher=block_cipher)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
[],
|
||||
name='test_plex_posters',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=True )
|
||||
|
After Width: | Height: | Size: 884 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 3.4 MiB |
|
After Width: | Height: | Size: 401 KiB |
|
Before Width: | Height: | Size: 3.9 MiB After Width: | Height: | Size: 3.9 MiB |
|
Before Width: | Height: | Size: 376 KiB After Width: | Height: | Size: 376 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 435 KiB After Width: | Height: | Size: 435 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
@@ -1,5 +1,14 @@
|
||||
from plex_posters import __version__
|
||||
import plex_posters
|
||||
|
||||
inst = plex_posters.movie_poster_porn_scraper.create_instance(
|
||||
client_id='yb7NnBPh4riSnw',
|
||||
client_secret='-3Z0XUXD2XCiksfX26jORG107fA',
|
||||
user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0)'
|
||||
'Gecko/20100101 Firefox/70.0',
|
||||
)
|
||||
|
||||
def test_version():
|
||||
assert __version__ == '0.1.0'
|
||||
print(inst.reddit_instance.read_only)
|
||||
|
||||
inst.get_hot_posters().get_posters()
|
||||
|
||||
print(plex_posters.__version__)
|
||||
|
||||
14
plex-posters/tests/testimport/test_plex_posters.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import plex_posters
|
||||
|
||||
inst = plex_posters.movie_poster_porn_scraper.create_instance(
|
||||
client_id='yb7NnBPh4riSnw',
|
||||
client_secret='-3Z0XUXD2XCiksfX26jORG107fA',
|
||||
user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0)'
|
||||
'Gecko/20100101 Firefox/70.0',
|
||||
)
|
||||
|
||||
print(inst.reddit_instance.read_only)
|
||||
|
||||
inst.get_hot_posters().get_posters()
|
||||
|
||||
print(plex_posters.__version__)
|
||||