"[Errno 2] No such file or directory: [filename] " while trying to configure twarc2 library for fetching twitter data using Twitter api v2

Viewed 162

I am trying to install and configure twarc2 library for getting full archive search from twitter. But while configuring using twarc2 configure , After I enter my Bearer token ,I get the error message. I have attached the screenshot of the error below. Please suggest possible solution to resolve this.

To know more about twarc: Twarc2 library

File not found error

2 Answers

Yes this problem was due to Code to create config file (when not present) was not available in twarc library and thus this issue. This issue had been reported in github and is resolved now.

Issues-Docnow/twarc - Github

Solution is just

pip install --upgrade twarc

It will upgrade to latest version(2.1.7).

Related