The manual way, also the safest way for YOUR account. This method doesn't use external programs that utilises the cookies of your Facebook session, nor does it involve running some unreliable JS codes that is likely to break every time Facebook updates its backend or frontend code. Instead, it makes use of your browser's DevTools Network panel to intercept and extract video streams from the Facebook page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Search through Word documents and print the related matches.""" | |
from colorama import init, Fore, Style | |
from pathlib import Path | |
import re | |
# This is a hacky workaround to enable autocompletion for python-docx | |
# See here: https://stackoverflow.com/q/42968369/16689935 | |
from docx.document import Document |