| Location | Seattle, WA |
| Languages | English, Español, 日本語 |
| Interests | Infosec, 1987-1997 video games |
| Bookwyrms | https://bookwyrm.social/user/readingAtTheBeach |
| Location | Seattle, WA |
| Languages | English, Español, 日本語 |
| Interests | Infosec, 1987-1997 video games |
| Bookwyrms | https://bookwyrm.social/user/readingAtTheBeach |
Blacktwitter.io is a fediverse server that's important for community diversity. Their fundraising right now is falling a bit short of costs.
You can help!* https://www.patreon.com/andcomputers
* If you are too short of funds to send them money, you spare a post, perhaps?
Or if you have a few extra pounds, put your money where your values are.
Facebook (meta) goes to great lengths to prevent scraping. If you try to download content by using curl or python requests it will not work. For example if you install vanilla yt-dlp and try to download a facebook video, it will fail with "Cannot parse data". This is the facebook detecting the download attempt not being a real browser and failing the download. Simple workaround such as spoofing the user-agent header won't help here.
If you need to bypass this protection you need to use browser impersonation. For example:
$ python3 -m pip install -U curl_cffi
$ python3 -m pip install -U "yt-dlp[default,curl-cffi]"
$ yt-dlp --impersonate "Chrome-116" <facebook-video-url>
If you need to be logged in to account to download you can use --cookies-from-browser <browsername> to fetch the cookies from the browser cookie database (or use other means to pass the credentials to yt-dlp).