https://github.com/sqlsec/seo
Python实现批量查询网站的百度权重以及收录情况。
https://github.com/sqlsec/seo
pythonspider spider
Last synced: 5 months ago
JSON representation
Python实现批量查询网站的百度权重以及收录情况。
- Host: GitHub
- URL: https://github.com/sqlsec/seo
- Owner: sqlsec
- Created: 2018-07-17T08:36:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T19:02:57.000Z (about 2 years ago)
- Last Synced: 2025-04-22T02:41:04.371Z (9 months ago)
- Topics: pythonspider, spider
- Language: Python
- Size: 190 KB
- Stars: 46
- Watchers: 3
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 简介
Python3编写的一个批量查询SEO的小脚本,没想到我的代码这么烂居然还有朋友 star ,国光今天看了下代码,看不下去了,于是重写了一下,这次加入了进程池,执行速度比以前快很多,而且去掉了花里胡哨的进度条和表格输出,直接用原生的 print 然后手动`ljust(30)`对齐,大道至简!
# 依赖安装
到项目下使用`pip`来安装相关依赖
```bash
pip install requests
```
# 使用方法
`-r`:手动选择包含域名列表的文件
```shell
python3 seo.py -r /Users/sqlsec/Temp/domain.txt
```

# 性能对比
没有进程池查询100个域名耗时:`138.7033` 秒
使用进程池查询100个域名耗时:`4.4753` 秒