зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 13:06:13 +02:00
17 строки
437 B
Python
17 строки
437 B
Python
import asyncio
|
|
|
|
import twscrape
|
|
from twscrape.utils import gather
|
|
|
|
async def main():
|
|
api = twscrape.API()
|
|
# add accounts here or before from cli (see README.md for examples)
|
|
await api.pool.add_account("BookmarkTe60140", "", '', '')
|
|
await api.pool.login_all()
|
|
bms = await gather(api.bookmarks())
|
|
for bm in bms:
|
|
print(bm.rawContent)
|
|
print('-----')
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main()) |