Skip to content

Instantly share code, notes, and snippets.

@0xConstant
Created March 10, 2020 19:27
Show Gist options
  • Save 0xConstant/8d67c2471bcea6fbe2eab07e9192858e to your computer and use it in GitHub Desktop.
Save 0xConstant/8d67c2471bcea6fbe2eab07e9192858e to your computer and use it in GitHub Desktop.
import requests
import re
video_url_ = 'https://www.instagram.com/p/B82F0mJhiUV/'
grab_source_code = requests.get(str(video_url_))
print(grab_source_code.text)
grab_video_link = re.search(r'"video_url":"(.*?)"', str(grab_source_code.text)).group(1)
print(grab_video_link)
unicode_removed = grab_video_link.replace(r"\u0026", "&")
print(unicode_removed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment