зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 21:16:25 +02:00
add example of accounts_info command
Этот коммит содержится в:
родитель
52c5b2048b
Коммит
d90232c47d
22
readme.md
22
readme.md
@ -132,6 +132,28 @@ twscrape
|
||||
twscrape search --help
|
||||
```
|
||||
|
||||
## Advanced usage
|
||||
|
||||
### Get list of connected accounts and their statuses
|
||||
|
||||
```sh
|
||||
twscrape accounts
|
||||
|
||||
# Output:
|
||||
# ───────────────────────────────────────────────────────────────────────────────────
|
||||
# username logged_in active last_used total_req error_msg
|
||||
# ───────────────────────────────────────────────────────────────────────────────────
|
||||
# user1 True True 2023-05-20 03:20:40 100 None
|
||||
# user2 True True 2023-05-20 03:25:45 120 None
|
||||
# user3 False False None 120 Login error
|
||||
```
|
||||
|
||||
Or from code:
|
||||
```python
|
||||
pool = AccountsPool()
|
||||
print(await pool.accounts_info()) # list
|
||||
```
|
||||
|
||||
## Limitations
|
||||
|
||||
API rate limits (per account):
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user