-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
764a2d5
commit 80af4b4
Showing
5 changed files
with
14 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
#custom imports | ||
import username, certificate, re | ||
import username, re | ||
import ProfileImage as pi | ||
|
||
url = username.user_url() | ||
usname = usname = re.findall("https:\/\/www.instagram.com\/([\S]+?)\/", url)[0] | ||
ctx = certificate.context_ssl() #this step is not mandatory but advicable | ||
usname = re.findall(r"https:\/\/www.instagram.com\/([\S]+?)\/", url)[0] | ||
|
||
profile_pic_url_hd = pi.image_url(url, ctx) | ||
pi.image_show(profile_pic_url_hd,usname) #opens the image in a new window and also saves the image in the working directory | ||
pi.image(url, usname) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,5 @@ | |
|
||
#### ESSENTIAL LIBRARIES FOR MAIN FUNCTIONALITY #### | ||
|
||
urllib | ||
beautifulsoup4 | ||
ssl | ||
re | ||
bs4 | ||
Pillow |