instagram-scraper
instagram-scraper copied to clipboard
Cookie format unclear
Describe the bug I am unclear about the format of cookies file needed for the command line tool to work.
To Reproduce Steps to reproduce the behavior: I have a cookies file in .txt generated using google extension: https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid
Expected behavior
I expect it reads .txt, but there is no documentation so I do not what I was going to expect anyway. The terminal printed the following:
File "~/.crawler/bin/instagram-scraper", line 8, in <module> sys.exit(main()) File "~/.crawler/lib/python3.9/site-packages/instagram_scraper/app.py", line 1550, in main scraper = InstagramScraper(**vars(args)) File "~/.crawler/lib/python3.9/site-packages/instagram_scraper/app.py", line 143, in __init__ self.session.cookies.update(pickle.load(f)) EOFError: Ran out of input
Suggested solution Perhaps I should convert the cookies.txt into cookies.pickle?
Demo
just run instagram-scraper <any necessary commands> --cookiejar "cookies.txt"
in terminal, and make sure to put the cookies.txt into the working directory prior.
System (please complete the following information):
- OS: macOS
- Python Version: 3.9.13
- tiktok-scraper Version: None
Additional context I hope there will be clearer guideline in what kind of cookies file the command line tool/package expects.