Skip to content

Instantly share code, notes, and snippets.

View Xoma163's full-sized avatar
🚳

Andrew Sha Xoma163

🚳
View GitHub Profile
@aminnj
aminnj / download_video.py
Last active October 18, 2023 13:52
Download reddit-hosted videos/audio
import requests
import os
# change this url to the post's url
post_url = "https://www.reddit.com/r/holdmycatnip/comments/7vyada/hmc_so_i_can_drink_this_air_real_quick/"
# use UA headers to prevent 429 error
headers = {
'User-Agent': 'My User Agent 1.0',
'From': '[email protected]'