Skip to content

Commit

Permalink
Ignore InsecureRequestWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
LevPasha committed Jan 13, 2018
1 parent bbba408 commit e0cc67d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion InstagramAPI/InstagramAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
import calendar
import os
from requests_toolbelt import MultipartEncoder

# Turn off InsecureRequestWarning
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

try:
from moviepy.editor import VideoFileClip
except:
Expand All @@ -24,7 +29,6 @@
# The urllib library was split into other modules from Python 2 to Python 3
if sys.version_info.major == 3:
import urllib.parse

try:
from ImageUtils import getImageSize
except:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='InstagramAPI',
version='1.0.1',
version='1.0.2',
description='Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.',
url='https://github.com/LevPasha/Instagram-API-python/',
author='Pasha Lev',
Expand Down

0 comments on commit e0cc67d

Please sign in to comment.