diff --git a/README.md b/README.md index ef24ecc..20c8060 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# spider-tool-kie +# spider-brew-kit A library for scrapy tools, including but not limited to the usual pipelines, middlewares, etc. ## install ```shell -pip install spider-tool-kie +pip install spider-brew-kit ``` ## usage @@ -70,6 +70,6 @@ DOWNLOADER_MIDDLEWARES = { ```shell git clone -cd spider-tool-kie +cd spider-brew-kit poetry install ``` diff --git a/mkdocs.yml b/mkdocs.yml index 70a7005..180077b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,6 @@ site_name: "scrapy_kit" site_description: "scrapy kit" -repo_name: "spider-tool-kie/scrapy_kit" +repo_name: "spider-brew-kit/scrapy_kit" watch: [mkdocs.yml, README.md, scrapy_kit] diff --git a/pyproject.toml b/pyproject.toml index 7886683..d0bcf8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,15 @@ [tool.poetry] -name = "spider-tool-kit" -version = "0.1.3" +name = "spider-brew-kit" +version = "0.1.0" description = "" authors = ["Pony.Ma "] readme = "README.md" -packages = [{include = "spider_tool_kit"}] -homepage = "https://spider-tool-kit.readthedocs.io/en/latest/" -documentation = "https://spider-tool-kit.readthedocs.io/en/latest/" +packages = [{include = "spider_brew_kit"}] +homepage = "https://spider-brew-kit.readthedocs.io/en/latest/" +documentation = "https://spider-brew-kit.readthedocs.io/en/latest/" repository = "https://github.com/ma-pony/spider-tool-kit" license = "Apache-2.0" -keywords = ["spider", "scrapy", "spider-tool-kie", "spider-kit", "spider-tools", "spider-tool-kit"] +keywords = ["spider", "scrapy", "spider-tool-kit", "spider-kit", "spider-tools", "spider-tool-kit"] [tool.poetry.dependencies] diff --git a/spider_tool_kit/__init__.py b/spider_brew_kit/__init__.py similarity index 100% rename from spider_tool_kit/__init__.py rename to spider_brew_kit/__init__.py diff --git a/spider_tool_kit/contants.py b/spider_brew_kit/contants.py similarity index 100% rename from spider_tool_kit/contants.py rename to spider_brew_kit/contants.py diff --git a/spider_tool_kit/scrapy/__init__.py b/spider_brew_kit/scrapy/__init__.py similarity index 100% rename from spider_tool_kit/scrapy/__init__.py rename to spider_brew_kit/scrapy/__init__.py diff --git a/spider_tool_kit/scrapy/middlewares/__init__.py b/spider_brew_kit/scrapy/middlewares/__init__.py similarity index 100% rename from spider_tool_kit/scrapy/middlewares/__init__.py rename to spider_brew_kit/scrapy/middlewares/__init__.py diff --git a/spider_tool_kit/scrapy/middlewares/proxy_connection_close.py b/spider_brew_kit/scrapy/middlewares/proxy_connection_close.py similarity index 100% rename from spider_tool_kit/scrapy/middlewares/proxy_connection_close.py rename to spider_brew_kit/scrapy/middlewares/proxy_connection_close.py diff --git a/spider_tool_kit/scrapy/pipelines/__init__.py b/spider_brew_kit/scrapy/pipelines/__init__.py similarity index 100% rename from spider_tool_kit/scrapy/pipelines/__init__.py rename to spider_brew_kit/scrapy/pipelines/__init__.py diff --git a/spider_tool_kit/scrapy/pipelines/crawl_one_pipeline.py b/spider_brew_kit/scrapy/pipelines/crawl_one_pipeline.py similarity index 100% rename from spider_tool_kit/scrapy/pipelines/crawl_one_pipeline.py rename to spider_brew_kit/scrapy/pipelines/crawl_one_pipeline.py diff --git a/spider_tool_kit/scrapy/pipelines/mongo_pipeline.py b/spider_brew_kit/scrapy/pipelines/mongo_pipeline.py similarity index 100% rename from spider_tool_kit/scrapy/pipelines/mongo_pipeline.py rename to spider_brew_kit/scrapy/pipelines/mongo_pipeline.py diff --git a/spider_tool_kit/scrapy/playwright/__init__.py b/spider_brew_kit/scrapy/playwright/__init__.py similarity index 100% rename from spider_tool_kit/scrapy/playwright/__init__.py rename to spider_brew_kit/scrapy/playwright/__init__.py diff --git a/spider_tool_kit/scrapy/playwright/request.py b/spider_brew_kit/scrapy/playwright/request.py similarity index 100% rename from spider_tool_kit/scrapy/playwright/request.py rename to spider_brew_kit/scrapy/playwright/request.py diff --git a/spider_tool_kit/tools/__init__.py b/spider_brew_kit/tools/__init__.py similarity index 100% rename from spider_tool_kit/tools/__init__.py rename to spider_brew_kit/tools/__init__.py diff --git a/spider_tool_kit/tools/text_encode.py b/spider_brew_kit/tools/text_encode.py similarity index 90% rename from spider_tool_kit/tools/text_encode.py rename to spider_brew_kit/tools/text_encode.py index 50ca69e..be59c39 100644 --- a/spider_tool_kit/tools/text_encode.py +++ b/spider_brew_kit/tools/text_encode.py @@ -1,4 +1,4 @@ -from spider_tool_kit.contants import ENCODINGS +from spider_brew_kit.contants import ENCODINGS def fix_encode(garbled_text: str, decoding='utf-8') -> (str, str): diff --git a/test/unit/scrapy/pipelines/mongo.py b/test/unit/scrapy/pipelines/mongo.py index 42fa306..8e54c08 100644 --- a/test/unit/scrapy/pipelines/mongo.py +++ b/test/unit/scrapy/pipelines/mongo.py @@ -4,7 +4,7 @@ import pytest from pytest_twisted import ensureDeferred -from spider_tool_kit.scrapy.pipelines.mongo_pipeline import MongoPipeline +from spider_brew_kit.scrapy.pipelines.mongo_pipeline import MongoPipeline class TestMongoPipeline: diff --git a/test/unit/tools/text_encode.py b/test/unit/tools/text_encode.py index e39ed1d..fcc4235 100644 --- a/test/unit/tools/text_encode.py +++ b/test/unit/tools/text_encode.py @@ -1,4 +1,4 @@ -from spider_tool_kit.tools import fix_encode +from spider_brew_kit.tools import fix_encode class TestTextEncode: