Hello,
Does anybody have a problem with using hydrate with twarc in the command line? I have a problem with twarc configuration. I tried multiple times to set up Bearer toke, API, and Secret token but that didn’t work. I deleted the profile from …Users\WIN-PC.twarc in order to create a new but
twarc configure
gives me the following
I’ve never seen this error before.
Does
twarc2 configure
Work?
What python environment / version are you using?
Can you try in a directory without - or any spaces?
Hi Igor,
Twarc2 configure seems to work but in the end, the problem is with a profile in .twarc. “No such profile in … .twarc”
I should mention that I manually deleted two profiles in .twarc to try again and create. But after twarc2 configure, nothing is inserted in the .twarc file - maybe that is the problem, but I do not know how to fix it.
Python 3.8.12
Pandas 1.3.4
Hi Igor,
Problem solved, I manually deleted .twarc, run
twarc configure
and a new .twarc file is created. I should not change the content manually.
Thanks
1 Like
Great! Sounds like that was a permissions error or something. Just for future reference too, twarc commands are for v1.1 API and twarc2 commands are for v2 API and they have to be configured separately, I suggested it because sometimes using a different thing can show up other errors, but you should generally try to run the command line as opposed to your own scripts - unless you have some specific requirements.
1 Like