From 426b1a0de65a5849e45b28cbc7e0fa7143224080 Mon Sep 17 00:00:00 2001 From: Psychiquest <37347900+Psychiquest@users.noreply.github.com> Date: Wed, 3 Oct 2018 01:30:12 +0530 Subject: [PATCH] Delete dppage.py --- dppage.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 dppage.py diff --git a/dppage.py b/dppage.py deleted file mode 100644 index 45340ff..0000000 --- a/dppage.py +++ /dev/null @@ -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") - -