How to download instagram video using python
- Requests
- Beatifulsoup4
import osimport requestsfrom bs4 import BeautifulSoupURL = input('enter url:/>')page = requests.get(URL)soup = BeautifulSoup(page.content, 'html.parser')link = soup.find('meta',property='og:video:secure_url')final = link.get('content')print(final)chunk_size = 80500r = requests.get(final,stream=True)with open('title.mp4','wb') as f:for chunk in r.iter_content(chunk_size=chunk_size):f.write(chunk)
Thank you for read my post..!.Have a great day :)