DocNow / twarc-csv

A plugin for twarc2 for converting tweet JSON into DataFrames and exporting to CSV.
MIT License
31 stars 10 forks source link

getting 403 error when running twarc search command #34

Closed jazz215 closed 3 years ago

jazz215 commented 3 years ago

twarc2 search --limit 50 "beauty" tweets.jsonl 0%| | Processed a moment/6 days [00:00<?, 0 tweets total ] ⚡ Client Forbidden

edsu commented 3 years ago

This is probably due to your keys being incorrectly set up.

edsu commented 3 years ago

Also this repository is for the twarc-csv plugin please use https://gitbub.com/docnow/twarc/issues for reporting issues with twarc itself.

igorbrigadir commented 3 years ago

This is probably due to your keys being incorrectly set up.

Yep, this is it, see your developer console and check that the app is attached to the right Project

jazz215 commented 3 years ago

Yes, so i was using wrong bearer_token, that is resolved.

But now, I am getting 3 failed test due to twarc/client2.py::BLACK FAILED

Also,getting this error when I do:

twarc2 search '#blacklivesmatter'

⚡ Unauthorized (ERROR Unexpected HTTP response: <Response [401]>)

Do you know why?

Regards, Jaspreet

On Sun, Oct 24, 2021 at 5:12 AM Igor Brigadir @.***> wrote:

This is probably due to your keys being incorrectly set up.

Yep, this is it, see your developer console and check that the app is attached to the right Project

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DocNow/twarc-csv/issues/34#issuecomment-950289127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKHVMLLLRECJNSSOV4JUOIDUIPEYDANCNFSM5GS4O6FQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

igorbrigadir commented 3 years ago

You should not be getting anything with failed tests, you should not be running dev tests.

What exact commands are you running and in what environment?

See https://twittercommunity.com/t/help-for-beginners/151609/2?u=igorbrigadir for a guide