a package for search data from weibo, zhihu, guba and etc.
Project description
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.
Existing features
0、set cookie and import package
from EuclidSearchPackage import *
Set_cookie('cookie.txt') # 'cookie.txt' is your local cookie file path
1、 get single weibo's data
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
url_list = Get_item_url_list('https://s.weibo.com/weibo?q=杭州公园')
print(url_list)
3、get user's info
data_json = Get_user_info('1202150843')
print(data_json)
4、get user's all blog
Get_user_all_weibo(2656274875, 100, query='主播说联播', colName='主播说联播', csv=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for EuclidSearchPackage-0.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b69b96e2c994c2836834ab9b8e434e64056dbead0c77cab63dfbf4ef043f18 |
|
MD5 | 134b5a82c8b07b948301dd9f0987d47a |
|
BLAKE2b-256 | 8d1739c4e63a42a7ac8dc67f2ec93eccb171a0bb1f461626ea81b338cee5972d |
Close
Hashes for EuclidSearchPackage-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22e262c8c4c610a5e29d5a5609c3ef3a3cbd5a8d51e1e5322242b862f4dec59 |
|
MD5 | 8f0d1f2b1293a361a3a81a9365d6c052 |
|
BLAKE2b-256 | d384298322fd721f4634c83be6b3e311bcca7147d27f54a3ea65c3bb0d298b27 |