Metadata-Version: 2.1
Name: EuclidSearchPackage
Version: 0.3.3
Summary: a package for search data from weibo, zhihu, guba and etc.
Author-email: Euclid Jie <Ouweijie123@outlook.coom>
License: MIT License
        
        Copyright (c) [2023] [Euclid-Jie]
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/Euclid-Jie/EuclidSearchPackage
Project-URL: Bug Tracker, https://github.com/Euclid-Jie/EuclidSearchPackage/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# EuclidSearchPackage

this package is include some tools to get data from weibo、zhihu、guba and etc.

The project will continue to be updated and you are welcome to join us on [GitHub](https://github.com/Euclid-Jie/EuclidSearchPackage).

## Existing features

#### 0、set cookie and import package

```python
from src.EuclidSearchPackage import *
Set_cookie('cookie.txt')  # 'cookie.txt' is your local cookie file path
```

### 1、 get single weibo's data

```python
data_json = Get_single_weibo_data(mblogid='MrOtA75Fd')
print(data_json)
```
### 2、 get the weibo url list

set the url(contains keyword),  then  item in list is `"1562868034/MkXTBh9Fk"`, which is contains uid and mblogid

```python
url_list = Get_item_url_list('https://s.weibo.com/weibo?q=杭州公园')
print(url_list)
```
### 3、get user's info

```python
data_json = Get_user_info('1202150843')
print(data_json)
```
### 4、get user's all blog

```python
Get_user_all_weibo(2656274875, 100, query='主播说联播', colName='主播说联播', csv=True)
```
