trevorhobenshield / twitter-api-client

Implementation of X/Twitter v1, v2, and GraphQL APIs
https://pypi.org/project/twitter-api-client
MIT License
1.56k stars 207 forks source link

How to save cookies for later use #212

Closed quangdai0805 closed 4 months ago

quangdai0805 commented 5 months ago

I saved cookies after logging in to my account but then I can't use them. Is there any way I can save cookies and use them later without needing to log in to my account?

SakiSakiSakiSakiSaki commented 5 months ago

To save: scraper.save_cookies("name of cookies file") To use: scraper = Scraper(cookies="name of cookies file.cookies")