forked from Anorov/cloudflare-scrape
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
30 lines (24 loc) · 943 Bytes
/
setup.py
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
import os
import re
from setuptools import setup
base_path = os.path.dirname(__file__)
def get_long_description():
readme_md = os.path.join(base_path, "README.md")
with open(readme_md) as f:
return f.read()
with open(os.path.join(base_path, "cfscrape", "__init__.py")) as f:
VERSION = re.compile(r'.*__version__ = "(.*?)"', re.S).match(f.read()).group(1)
setup(
name="cfscrape",
packages=["cfscrape"],
version=VERSION,
description='A simple Python module to bypass Cloudflare\'s anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.',
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Anorov",
author_email="[email protected]",
url="https://github.com/Anorov/cloudflare-scrape",
keywords=["cloudflare", "scraping"],
include_package_data=True,
install_requires=["requests >= 2.23.0"],
)