Skip to content

Commit b573976

Browse files
authored
Subject: Updated travis.tml (format), (InstaPy#6079)
sorted requirements and versions limits, added `accept_igcookie_dialogue` Problem: New IG cookie window in some regions is not handled, that could induce a crash Solution: Added second `accept_igcookie_dialogue` to catch the new ID cookie window Note: Signed-off-by: elulcao <[email protected]>
1 parent b4b018f commit b573976

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ branches:
88
- legacy
99
- experimental
1010

11-
install: pip install tox
11+
install: pip install -U pip tox
1212

1313
script: tox
1414

1515
stages:
16-
- name: static analysis
17-
- name: test
18-
- name: docs
19-
if: type = push AND branch = master AND fork = false
20-
- name: pypi-prod
21-
if: type = push AND fork = false AND tag =~ ^\d+\.\d+\.\d+
16+
- name: static analysis
17+
- name: test
18+
- name: docs
19+
if: type = push AND branch = master AND fork = false
20+
- name: pypi-prod
21+
if: type = push AND fork = false AND tag =~ ^\d+\.\d+\.\d+
2222

2323
jobs:
2424
fast_finish: true
@@ -70,7 +70,7 @@ jobs:
7070
- stage: docs
7171
language: node_js
7272
node_js:
73-
- '10'
73+
- "10"
7474
cache:
7575
yarn: true
7676
script:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ _The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1212
- Added delays after load cookie in login.util.py
1313
- Added `apidisplaypurposes about` in `smart_hashtags` and new api token; Python3.5
1414
- Added `interact_user_likers` interacting with the likers from a given user's posts
15+
- Added second `accept_igcookie_dialogue` to handled the second "cookie accept screen" that is not automatically accepted
1516

1617
### Fixed
1718
- Move call to `get_following_status` above `web_address_navigator` inside `get_links_for_username` function

instapy/login_util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ def login_user(
283283
accept_igcookie_dialogue(browser, logger)
284284
return True
285285

286+
# This fix comes from comment in #6060 If not necessary we can remove it
287+
accept_igcookie_dialogue(browser, logger)
288+
286289
# if user is still not logged in, then there is an issue with the cookie
287290
# so go create a new cookie.
288291
if cookie_loaded:

requirements.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1+
api-display-purposes>=0.0.3; python_version > '3.5'
12
certifi>=2018.10.15
2-
chardet>=3.0.4
3+
chardet>=3.0.4,<4
34
clarifai>=2.4.1
4-
configparser>=3.5.0
5+
configparser>=3.5.0,<4
56
EasyProcess>=0.2.3
67
emoji>=0.5.1
78
future>=0.17.1
89
grpcio>=1.16.1
9-
idna>=2.7
10+
idna>=2.7,<3
1011
jsonschema>=2.6.0,<3
12+
MeaningCloud-python>=1.1.1
1113
plyer>=1.3.1
12-
protobuf>=3.6.1
14+
protobuf>=3.6.1,<4
15+
python-telegram-bot>=12.0.0; python_version > '3.6'
1316
PyVirtualDisplay>=0.2.1; sys_platform != 'win32'
17+
PyYAML>=3.13
18+
regex>=2018.11.22
1419
requests>=2.20.1
1520
selenium>=3.141.0
21+
setuptools_rust>=0.11.6
1622
six>=1.11.0
1723
urllib3>=1.24.1
18-
regex>=2018.11.22
19-
MeaningCloud-python>=1.1.1
20-
PyYAML>=3.13
21-
webdriverdownloader
22-
python-telegram-bot>=12.0.0
23-
api-display-purposes>=0.0.3; python_version > '3.5'
24+
webdriverdownloader>=1.1.0.3

0 commit comments

Comments
 (0)