Delete dppage.py

This commit is contained in:
Psychiquest 2018-10-03 01:30:12 +05:30 committed by GitHub
parent e5c250ebc1
commit 426b1a0de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +0,0 @@
from bs4 import BeautifulSoup
import requests
import webbrowser as wb
username = input("Enter the instagram user-id: ")
try:
a = requests.get("https://www.instagram.com/"+username)
co = a.content
soup = BeautifulSoup(co,'html.parser')
link = soup.find_all('meta' , property="og:image")
print(link)
print(type(soup))
imagelink=(str(link[0])[15:])
imagelink=imagelink[:len(imagelink)-23]
print(imagelink)
wb.open_new_tab(imagelink)
except :
print("No such username exists")