Skip to main content

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.

How to use

1、install this package

pip install EuclidSearchPackage
import EuclidSearchPackage as ESP
ESP.Set_cookie('cookie.txt')  # 'cookie.txt' is your local cookie file path

3、use WeiboClassV1 to get data

timeBegin = '2023-03-01-0'
timeEnd = '2023-03-10-0'
demoClass = ESP.WeiboClassV1(Mongo=False)
demoClass.main_get(['北师大', '珠海'], timeBegin, timeEnd)

4、use WeiboClassV3 to get data

compare to WeiboClassV2, WeiboClassV3 use thread to get data more fast.

ESP.WeiboClassV3('北师大', Mongo=False, max_work_count=20, LongText=False).main('2023-03-11-00', '2023-03-27-21')

Existing features

you can use these methods to fulfill yours purpose, just like WeiboClassV2

1、 get single weibo's data

data_json = ESP.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

url_list =  ESP.Get_item_url_list('https://s.weibo.com/weibo?q=杭州公园')
print(url_list)

3、get user's info

data_json =  ESP.Get_user_info('1202150843')
print(data_json)

4、get user's all blog

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

Metadata

Release files for EuclidSearchPackage 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EuclidSearchPackage 0.6.1
File Size Uploaded Provenance Actions
EuclidSearchPackage-0.6.1.tar.gz 15.2 kB Without provenance Details for EuclidSearchPackage-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for EuclidSearchPackage 0.6.1
File Interpreter ABI Platform Actions
EuclidSearchPackage-0.6.1-py3-none-any.whl Python 3 none any Details for EuclidSearchPackage-0.6.1-py3-none-any.whl

Total release size: 38.4 kB

Release files / EuclidSearchPackage-0.6.1.tar.gz

Download URL EuclidSearchPackage-0.6.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
adaf09e156cda7171d5d6d619fd2ec1e51253de10e169068c849723e4e31293f
BLAKE2b-256 checksum
How to use checksums
01d7ec6b231478708b174997525e8a98582cec6d030a3563aac1099ad907c31b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / EuclidSearchPackage-0.6.1-py3-none-any.whl

Download URL EuclidSearchPackage-0.6.1-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73bb1a61a5ffd2efc375dfd8abd420f2ce1b3dd0c9b838898bc4a9d8c6b6f715
BLAKE2b-256 checksum
How to use checksums
259754a1ab1e362b36236c60b236ed399f42e5acb950a2375e0c9290dbc86cb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Security for EuclidSearchPackage 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page