forked from VeNoMouS/cloudscraper
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
106 lines (103 loc) · 3.75 KB
/
setup.py
File metadata and controls
106 lines (103 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import os
import re
from setuptools import setup, Extension
try:
from Cython.Build import cythonize
import platform
# Check if we have a compiler (very basic check)
HAS_COMPILER = True
if platform.system() == 'Windows':
# Just a hint, building wheels usually happens in a controlled env
pass
except ImportError:
HAS_COMPILER = False
def cythonize(extensions, **kwargs):
return []
from io import open
with open(os.path.join(os.path.dirname(__file__), 'cloudscraper', '__init__.py'), 'r', encoding='utf-8') as fp:
VERSION = re.match(r'.*__version__ = \'(.*?)\'', fp.read(), re.S).group(1)
with open('README.md', 'r', encoding='utf-8') as fp:
readme = fp.read()
setup(
name = 'ai-cloudscraper',
author='Zied Boughdir',
author_email='zinzied@gmail.com',
version='3.8.3',
packages = ['cloudscraper', 'cloudscraper.captcha', 'cloudscraper.interpreters', 'cloudscraper.user_agent'],
ext_modules = [], # No Cython compilation needed
py_modules = [],
python_requires='>=3.8',
description = 'Enhanced Python library to bypass Cloudflare\'s anti-bot protection with cutting-edge anti-detection technologies, including TLS fingerprinting, ML optimization, and behavioral simulation.',
long_description=readme,
long_description_content_type='text/markdown',
url = 'https://github.com/zinzied/cloudscraper',
project_urls={
'Documentation': 'https://github.com/zinzied/cloudscraper#readme',
'Source': 'https://github.com/zinzied/cloudscraper',
'Tracker': 'https://github.com/zinzied/cloudscraper/issues',
'Changelog': 'https://github.com/zinzied/cloudscraper/blob/master/CHANGELOG.md',
},
keywords = [
'cloudflare',
'scraping',
'ddos',
'scrape',
'webscraper',
'anti-bot',
'waf',
'iuam',
'bypass',
'challenge',
'tls-fingerprinting',
'anti-detection',
'stealth',
'machine-learning',
'behavioral-simulation',
'canvas-spoofing',
'webgl-spoofing',
'fingerprint-resistance',
'automation',
'turnstile'
],
include_package_data = True,
install_requires = [
'requests >= 2.31.0',
'requests_toolbelt >= 1.0.0',
'pyparsing >= 3.1.0',
'pyOpenSSL >= 24.0.0',
'pycryptodome >= 3.20.0',
'js2py >= 0.74',
'brotli >= 1.1.0',
'certifi >= 2024.2.2',
'ai-urllib4 >= 2.0.0',
'psutil >= 5.9.0'
],
extras_require={
'ai': ['ddddocr', 'ultralytics', 'google-generativeai'],
'browser': ['playwright', 'py-parkour>=3.0.0'],
'hybrid': ['py-parkour>=3.0.0'],
'all': ['ddddocr', 'ultralytics', 'playwright', 'py-parkour>=3.0.0', 'google-generativeai']
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Security',
'Topic :: System :: Networking',
'Environment :: Web Environment',
'Framework :: AsyncIO'
]
)