From 92979843e22e63910838e211259c2e83403adea4 Mon Sep 17 00:00:00 2001 From: Psychiquest <37347900+Psychiquest@users.noreply.github.com> Date: Wed, 3 Oct 2018 00:58:37 +0530 Subject: [PATCH 1/6] Create InstadpShower --- InstadpShower | 1 + 1 file changed, 1 insertion(+) create mode 100644 InstadpShower diff --git a/InstadpShower b/InstadpShower new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/InstadpShower @@ -0,0 +1 @@ + From be2e0b928d188115cb8ce08eb9bd049cf86fbc4b Mon Sep 17 00:00:00 2001 From: Psychiquest <37347900+Psychiquest@users.noreply.github.com> Date: Wed, 3 Oct 2018 01:05:46 +0530 Subject: [PATCH 2/6] Delete InstadpShower --- InstadpShower | 1 - 1 file changed, 1 deletion(-) delete mode 100644 InstadpShower diff --git a/InstadpShower b/InstadpShower deleted file mode 100644 index 8b13789..0000000 --- a/InstadpShower +++ /dev/null @@ -1 +0,0 @@ - From 664b6abb2da644b1ae4558c6ed772d8b7de4a4f5 Mon Sep 17 00:00:00 2001 From: Psychiquest <37347900+Psychiquest@users.noreply.github.com> Date: Wed, 3 Oct 2018 01:28:56 +0530 Subject: [PATCH 3/6] Create README.md --- InstadpShower/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 InstadpShower/README.md diff --git a/InstadpShower/README.md b/InstadpShower/README.md new file mode 100644 index 0000000..9b446e8 --- /dev/null +++ b/InstadpShower/README.md @@ -0,0 +1,16 @@ +# InstadpShower + +This is a simple python script which uses web scraping techniques to display the instagram dp of any user just by typing its username. + +To use this script, you need to have bs4 and requests libraries of python installed in your local machine. + +To install bs4 and requests, use the following command + +``` +pip install bs4 +``` +``` +pip install requests +``` + +Once libraries are installed, just run the script and type the instagram username of the person, whom you want to see the dp of, and the instagram dp will be displayed on the browser. From e5c250ebc1f406f54af23d609720517130b882cf Mon Sep 17 00:00:00 2001 From: Psychiquest <37347900+Psychiquest@users.noreply.github.com> Date: Wed, 3 Oct 2018 01:29:52 +0530 Subject: [PATCH 4/6] Add files via upload --- dppage.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dppage.py diff --git a/dppage.py b/dppage.py new file mode 100644 index 0000000..45340ff --- /dev/null +++ b/dppage.py @@ -0,0 +1,24 @@ +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") + + 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 5/6] 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") - - From 7f90ae442e72f65638596d11dec97f2f15cb210e Mon Sep 17 00:00:00 2001 From: Psychiquest <37347900+Psychiquest@users.noreply.github.com> Date: Wed, 3 Oct 2018 01:35:01 +0530 Subject: [PATCH 6/6] Create dppage.py --- InstadpShower/dppage.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 InstadpShower/dppage.py diff --git a/InstadpShower/dppage.py b/InstadpShower/dppage.py new file mode 100644 index 0000000..2464a95 --- /dev/null +++ b/InstadpShower/dppage.py @@ -0,0 +1,24 @@ +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") + +