Open FroostySnoowman opened 5 months ago
Hi, @FroostySnoowman.
What api method you use? Actually is no flags about it any model now.
If you scrape user profiles, ids should be in chronological order expect 1-3 first which can be pinned. So you can write some code to detect this
Added in v0.13
import asyncio
from twscrape import API
async def main():
api = API()
async for doc in api.user_tweets(2244994945, limit=10):
print(doc.url, doc.id in doc.user.pinnedIds)
if __name__ == "__main__":
asyncio.run(main())
How would I check to see if a tweet is pinned?