Skip to content

Commit e0cc67d

Browse files
committed
Ignore InsecureRequestWarning
1 parent bbba408 commit e0cc67d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

InstagramAPI/InstagramAPI.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
import calendar
1717
import os
1818
from requests_toolbelt import MultipartEncoder
19+
20+
# Turn off InsecureRequestWarning
21+
from requests.packages.urllib3.exceptions import InsecureRequestWarning
22+
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
23+
1924
try:
2025
from moviepy.editor import VideoFileClip
2126
except:
@@ -24,7 +29,6 @@
2429
# The urllib library was split into other modules from Python 2 to Python 3
2530
if sys.version_info.major == 3:
2631
import urllib.parse
27-
2832
try:
2933
from ImageUtils import getImageSize
3034
except:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

0 commit comments

Comments
 (0)