-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (55 loc) · 1.97 KB
/
setup.py
File metadata and controls
62 lines (55 loc) · 1.97 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import scrape
import os
def read(*names):
values = dict()
extensions = [".txt", ".rst"]
for name in names:
value = ""
for extension in extensions:
filename = name + extension
if os.path.isfile(filename):
value = open(name + extension).read()
break
values[name] = value
return values
with open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.rst"),
encoding="utf-8",
) as f:
long_description = f.read()
setup(
name="scrape",
version=scrape.__version__,
description="a command-line web scraping tool",
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Utilities",
"Topic :: Text Processing",
],
keywords="web crawler scraper scrape crawl download filter save webpages websites images docs document documentation pdf csv html lxml",
author="Hunter H",
author_email="huntrar@gmail.com",
maintainer="Hunter H",
maintainer_email="huntrar@gmail.com",
url="https://github.com/huntrar/scrape",
license="MIT",
packages=find_packages(),
entry_points={"console_scripts": ["scrape = scrape.scrape:command_line_runner"]},
install_requires=["lxml", "pdfkit", "requests", "six", "tldextract"],
)