Commit Graph

32 Commits

Author SHA1 Message Date
Mike Fährmann
35f343206c update default SSL cipher list in urllib3 < 1.25
Cloudflare now also checks the client's SSL/TLS cipher capabilities and
produces a 403: Forbidden response with CAPTCHA if they are insufficient.

This commit replaces the default cipher list in urllib3 < 1.25 with the
one from 1.25 (1), which doesn't cause problems as long as the client
platform actually supports these ciphers. On some platforms (tested with
Python 3.4 on Linux and Python 3.7 on an outdated Windows 7 VM) it is
necessary to install pyOpenSSL to get everything to work.

Explicitly setting a minimum/maximum version for urllib3 is also no
longer necessary and installing gallery-dl will therefore not pull a
incompatible urllib3 version (#229)

Fixes the "403: Forbidden" error on Artstation (#227)

(1) 0cedb3b0f1
2019-05-03 22:40:04 +02:00
Mike Fährmann
df7cdb648a specify maximum versions for requests & urllib3 (#229)
Wouldn't be necessary if pip would do proper version management.
As things are right now, pip ignores the urllib3 version requirements
from requests because gallery-dl is specifying its own.
2019-04-29 17:24:30 +02:00
Mike Fährmann
c35217e9a3 specify version requirements for urllib3
urllib3 versions 1.24.1 and 1.24.2 cause HTTP requests to
https://www.artstation.com/users/<username>/quick.json
to fail with a 403: Forbidden status code (#227),
and provoke a CAPTCHA response after solving a Cloudflare challenge.
2019-04-26 12:58:20 +02:00
Mike Fährmann
9af9823067 increase required 'requests' version to 2.11.0
- uses an OrderedDict for session.headers (since 2.9.2)
- ships with urllib3 1.16, which is the first version to have an
  'allowed_gai_family()' function
2019-04-09 10:41:14 +02:00
Mike Fährmann
089923e3dd parse configuration.rst to build gallery-dl.conf.5 (#150)
… a man-page containing all of gallery-dl's configuration file options.

This implementation relies on Python dicts preserving their insertion
order. Python 3.4 and 3.5 need to use OrderedDict or they produce
randomly ordered man-page sections.

The man-page formatting is a bit rough around the edges, but it works
for the most part. The only real "problem" are inline-links, but it's
better if they are left in there.
2019-03-28 16:20:52 +01:00
Mike Fährmann
0df4edc20a skip missing data_files in setup.py (#204)
[ci skip]
2019-03-24 18:05:54 +01:00
Mike Fährmann
e5f44a5160 add Makefile; include manpage&completion in setup.py (#150) 2019-03-24 11:03:02 +01:00
Mike Fährmann
ea9d1b6501 update README.rst
- point to pip3/python3 in installation-instructions (#118, #121)
- add dependency list
- update URLs to external resources
- remove incomplete list of supported sites
2018-11-17 17:46:19 +01:00
Mike Fährmann
a36259d8f1 update setup.py
- add Python version check
- add classifiers
- simplify sys.exit() usage
2018-10-24 14:43:37 +02:00
Mike Fährmann
e8311eb1ed drop Python 3.3 support 2018-07-17 21:21:27 +02:00
Mike Fährmann
3bcce77f6d release version 1.4.0 2018-06-08 22:21:35 +02:00
Elvis Yu-Jing Lin
aab2391c7b Fix UnicodeDecodeError during installation (#86)
* fix UnicodeDecodeError during installation

* simplify opening with utf-8 encoding
2018-05-23 17:46:00 +02:00
Mike Fährmann
a4bc5a3491 update setup.py and README.rst 2017-10-27 16:08:57 +02:00
Mike Fährmann
e739760ce0 update classifiers 2017-04-10 08:14:36 +02:00
Mike Fährmann
37d4d07d9b compatibility fixes to make a standalone exe work 2017-01-23 00:07:36 +01:00
Mike Fährmann
293c85f4a0 update setup.py to enable py2exe 2017-01-17 21:44:54 +01:00
Mike Fährmann
8c08b4dac1 update description 2016-12-26 01:24:06 +01:00
Mike Fährmann
0b3f284c2d set python version requirement in setup.py 2016-11-12 21:55:11 +01:00
Mike Fährmann
f434a0711b put centralized version string in 'version.py' 2016-10-08 11:37:47 +02:00
Mike Fährmann
813317045e bump version 2016-09-23 08:41:03 +02:00
Mike Fährmann
57a616a36f update README and bump version 2016-08-22 12:21:31 +02:00
Mike Fährmann
6366ddf154 bump version number 2016-07-25 15:20:14 +02:00
Mike Fährmann
30e47848cc update setup.py and bump version 2015-12-03 02:31:23 +01:00
Mike Fährmann
d96f4f8299 bump version 2015-11-26 18:10:58 +01:00
Mike Fährmann
20845d86f8 bump version 2015-11-10 21:17:31 +01:00
Mike Fährmann
950bebfd57 update setup.py and bump version 2015-11-04 00:07:03 +01:00
Mike Fährmann
882b1f31b1 update setup.py and bump version 2015-10-30 16:26:08 +01:00
Mike Fährmann
e37846e1c1 bump version number 2015-10-05 20:35:17 +02:00
Mike Fährmann
2962bf36f6 add tests for text-module 2015-10-03 14:51:13 +02:00
Mike Fährmann
af3b44762c update setup.py and egg metadata 2015-06-28 13:02:36 +02:00
Mike Fährmann
2f447416d2 update setup.py 2015-04-16 02:57:36 +02:00
Mike Fährmann
6f75100ef3 add setup.py 2015-03-27 18:26:09 +01:00