Skip to content

Commit b02bd95

Browse files
committed
chore: change name to baidu_image_crawling
1 parent db571b9 commit b02bd95

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/SyncToGitee.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
1919
dst_token: ${{ secrets.GITEE_TOKEN }}
2020
force_update: true
21-
static_list: "BaiduImageSpider"
21+
static_list: "BaiduImageCrawling"
2222
debug: true

.github/workflows/publish_whl.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Push baidu_image_spider to pypi
1+
name: Push baidu_image_crawling to pypi
22

33
on:
44
push:
@@ -50,5 +50,5 @@ jobs:
5050
- name: Publish distribution 📦 to PyPI
5151
uses: pypa/gh-action-pypi-publish@v1.5.0
5252
with:
53-
password: ${{ secrets.BAIDUIMAGESPIDER }}
53+
password: ${{ secrets.BaiduImageCrawling }}
5454
packages_dir: dist/

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
## Baidu Image Spider
1+
## Baidu Image Crawling
22

3-
一个超级轻量的百度图片爬虫, modified from <https://github.com/kong36088/BaiduImageSpider>
3+
一个超级轻量的百度图片爬虫, modified from <https://github.com/kong36088/BaiduImageCrawling>
44

55
### 安装
66

77
```bash
8-
pip install baidu_image_spider
8+
pip install baidu_image_crawling
99
```
1010

1111
### Python使用
1212

1313
```python
14-
from baidu_image_spider.main import Crawler
14+
from baidu_image_crawling.main import Crawler
1515

1616
crawler = Crawler(0.05, save_dir="outputs") # 抓取延迟为 0.05
1717

@@ -22,14 +22,14 @@ crawler(word="美女", total_page=2, start_page=1, per_page=30)
2222
### 终端使用
2323

2424
```bash
25-
baidu_image_spider -w 美女 -tp 1 -sp 1 -pp 2
25+
baidu_image_crawling -w 美女 -tp 1 -sp 1 -pp 2
2626
```
2727

2828
查看参数文档:
2929

3030
```bash
31-
$ baidu_image_spider -h
32-
usage: baidu_image_spider [-h] -w WORD -tp TOTAL_PAGE -sp START_PAGE [-pp [PER_PAGE]] [-sd SAVE_DIR] [-d DELAY]
31+
$ baidu_image_crawling -h
32+
usage: baidu_image_crawling [-h] -w WORD -tp TOTAL_PAGE -sp START_PAGE [-pp [PER_PAGE]] [-sd SAVE_DIR] [-d DELAY]
3333

3434
options:
3535
-h, --help show this help message and exit
File renamed without changes.
File renamed without changes.

demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- encoding: utf-8 -*-
22
# @Author: SWHL
33
# @Contact: liekkaskono@163.com
4-
from baidu_image_spider.main import Crawler
4+
from baidu_image_crawling.main import Crawler
55

66
crawler = Crawler(0.05, save_dir="outputs") # 抓取延迟为 0.05
77

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_readme():
2323
return readme
2424

2525

26-
MODULE_NAME = "baidu_image_spider"
26+
MODULE_NAME = "baidu_image_crawling"
2727
obtainer = GetPyPiLatestVersion()
2828
try:
2929
latest_version = obtainer(MODULE_NAME)
@@ -47,7 +47,7 @@ def get_readme():
4747
description="Baidu Image Spider",
4848
author="SWHL",
4949
author_email="liekkaskono@163.com",
50-
url="https://github.com/SWHL/BaiduImageSpider",
50+
url="https://github.com/SWHL/BaiduImageCrawling",
5151
license="Apache-2.0",
5252
include_package_data=True,
5353
install_requires=read_txt("requirements.txt"),

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
sys.path.append(str(root_dir))
1515

16-
from baidu_image_spider.main import main
16+
from baidu_image_crawling.main import main
1717

1818

1919
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)