Mildom(https://www.mildom.com/) crawler written in Python.
Project description
mildom_crawler
This is a Mildom(https://www.mildom.com/) crawler written in Python.
Example
・Getting user info
import sys
#add appropriate path on your env
sys.path.append('..')
from mdcrawler.mildom import Mildom
uid = '10084097'
mildom = Mildom()
user = mildom.get_account_by_uid(uid)
print(user)
# then you get
```
User info:
Username: TIE Ru
UserId: 10084097
Follower: 197449
Follow: 24
Country: Japan
Level: 97
Exp: 332865
GiftRevenue: 2853554
```
・Getting playbacks by user_id
import sys
#add appropriate path on your env
sys.path.append('..')
from mdcrawler.mildom import Mildom
uid = '10084097'
count = 100
mildom = Mildom()
playbacks = mildom.get_playbacks_by_uid(uid,count=count)
print(len(playbacks))
print(playbacks[0])
# then you get
```
100
PlayBack info:
PlayBackId: 10084097-c10clv52lrnf4dhgicsg
Username: TIE Ru
UserId: 10084097
PublishTime: 1614859237
Title: 【Apex】渋谷ハルカスタムに渋谷ハルと出る | with prize
ViewNum: 320
Length: 8368110
```
・Getting chats on the playback
import sys
sys.path.append('..')
from mdcrawler.mildom import Mildom
pbid = '10105254-1610795759'
count = 100
mildom = Mildom()
chats = mildom.get_chats_by_pbid(pbid,count=count)
print(len(chats))
print(chats[0])
print('-----')
chats = mildom.get_chats_by_pbid(pbid)
print(len(chats))
print(chats[-1])
# then you get
```
100
Chat info:
ChatId: 1610795770425_10904046_4711
ChatText: こんだよ~
ChatTime: 1610795770
ChatTimeOffset: 10
Username: fusianasan
UserId: 10904046
PlayBackId: 10105254-1610795759
-----
312
Chat info:
ChatId: 1610796391638_10614220_6151
ChatText: なんだろ
ChatTime: 1610796391
ChatTimeOffset: 631
Username: Leimy
UserId: 10614220
PlayBackId: 10105254-1610795759
```
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
mdcrawler-0.0.9.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for mdcrawler-0.0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68da99d02282dd07d39f44178839c946c0bd70c709bf9d57c9f9ee0d532ff3d9 |
|
MD5 | a4574b8f0f1bb1bc38bad574d68d0678 |
|
BLAKE2b-256 | 29b0583bee7ab4c724d302417c13f685c9cdafda1f97d4c7388d3613bdcbe268 |