semvec/pypi-packages huggingface dataset:
googlecmd 0.1.0
Launch google search query from the command line.
Requires Python: >=3.6
Keywords: Google-Search,Search-Engine,Query,Browser,CLI

# TorrentFile

![torrentfile](https://github.com/alexpdev/googlecmd/logo.png)

* * *

![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/googlecmd?color=orange)
![GitHub License](https://img.shields.io/github/license/alexpdev/googlecmd?color=red&logo=apache)
![PyPI - Downloads](https://img.shields.io/pypi/dm/googlecmd?color=brown)
![GitHub Last Commit](https://badgen.net/github/last-commit/alexpdev/googlecmd?color=blue)

## This project has no offiliation with Google or Alphabet in any way

## 🌐 Overview

A command line utility for launching google search queries from the command line.

## 🔌 Requirements

- Python 3.6+
- Tested on Linux, Windows and Mac

## 💻 Install

**PyPi:**

```bash
pip install googlecmd
```

**Git:**

```bash
git clone https://github.com/alexpdev/googlecmd.git
cd googlecmd
pip install .
```

## 📝 License

Apache Software License v2.0 - See [LICENSE]("https://github.com/alexpdev/torrentfile/blob/master/LICENSE")

## 💡 Issues & Requests & PRs

If you encounter any bugs or would like to request a new feature please open a new issue.
PRs and other contributions that are meaningful and add value to the project are welcome.

* * *

## Usage Examples

```bash
google how to run a google search query
```
xhs-spider 1.1.0
Little Red Book notes, home page, detailed page crawler
Keywords: python,xhs,spider


# Spider_XHS
![image](https://img.shields.io/badge/cv_cat-Spider_XHS-blue)

小红书个人主页图片和视频无水印爬取

## 效果图
![image](https://github.com/cv-cat/Spider_XHS/assets/94289429/ef8990bc-d568-4b63-9dfc-4e2e4f235f99)

![image](https://github.com/cv-cat/Spider_XHS/assets/94289429/a5eb7df4-434a-4e6e-91e1-b60b40ca08e8)

![image](https://github.com/cv-cat/Spider_XHS/assets/94289429/d8c2e84e-3e78-4ca8-8c93-406a3e74da91)

![image](https://github.com/cv-cat/Spider_XHS/assets/94289429/7a0ea368-5507-469f-84f4-6dda59568b86)

## 运行环境
Python环境
NodeJS环境

运行方法：把你想要的id全部放到列表里
```
# 主页处理
from xhs_spider.home import Home
home = Home()
url_list = [
    'https://www.xiaohongshu.com/user/profile/6185ce66000000001000705b',
    'https://www.xiaohongshu.com/user/profile/6034d6f20000000001006fbb',
]
home.main(url_list)
# 笔记处理
from xhs_spider.note import Note
one_note = OneNote()
url_list = [
    'https://www.xiaohongshu.com/explore/64356527000000001303282b',
]
one_note.main(url_list)
# 搜索结果处理
from xhs_spider.search import Search
search = Search()
query = '你好'
# 搜索的数量（前多少个）
number = 22
search.main(query, number)
```
## 日志
1. 23/08/08   first commit
2. 23/09/13 【api更改params增加两个字段】修复图片无法下载，有些页面无法访问导致报错。
3. 23/09/16 【较大视频出现编码问题】修复视频编码问题，加入异常处理。
4. 23/09/18   代码重构，加入失败重试。
5. 23/09/19   新增下载搜索结果功能

## 注意事项
**本项目仅供学习与交流，侵权必删**

other
1. 自行将cookies放到目录下cookies.txt中，去设置里的应用程序里找或者网络请求里找，需要哪些可以参考cookie.txt文件。
2. 可采用以下方法获取cookie，并运行对应文件。
![image](https://github.com/cv-cat/Spider_XHS/assets/94289429/e2ceaa15-defc-4d41-a6db-4a9d3f3055e4)
![image](https://github.com/cv-cat/Spider_XHS/assets/94289429/78e791a6-ba51-455a-a438-3c829db5c387)

3. 欢迎star，不时更新。
4. 有问题可以加QQ或者微信交流（992822653）
detect-indent 1.0.0
Detects the indentation type and size of any string.
Requires Python: >=3

# detect-indent for Python [![Test](https://github.com/Ethan-Vanderheijden/detect-indent-py/actions/workflows/CI.yml/badge.svg)](https://github.com/Ethan-Vanderheijden/detect-indent-py/actions/workflows/CI.yml)
Python port of
[sindresorhus/detect-indent](https://github.com/sindresorhus/detect-indent) All
attribution goes to that project.

> Detect the indentation of code

Pass in a string of any kind of text and get the indentation.


## Use cases

- Persisting the indentation when modifying a file.
- Have new content match the existing indentation.
- Setting the right indentation in your editor.

## Install

```
pip install detect-indent
```

## Usage

```py
from detect_indent import detect_indent

sample_string = '''
Example string
  with an indentation
    of two spaces
'''

indent = detect_indent(sample_string)
print(indent)  # {'amount': 2, 'type': 'space', 'indent': '  '}
```

## API

Returns a dictionary with the following stats about indentation:

 - `amount` {number} - Amount of indentation, for example 2. Will be 0 if indentation could not be detected.
 - `type` {'tab' | 'space' | None} - Type of indentation. Possible values are `'tab'`, `'space'` or `None` if no indentation is detected
 - `indent` {string} - A string representing the actual indentation, for example a string of two spaces.

## Algorithm

The current algorithm looks for the most common difference between two
consecutive non-empty lines. [More Details](https://github.com/sindresorhus/detect-indent)