Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use? #1

Open
jldelda opened this issue Oct 9, 2017 · 1 comment
Open

How to use? #1

jldelda opened this issue Oct 9, 2017 · 1 comment

Comments

@jldelda
Copy link

jldelda commented Oct 9, 2017

Hi!

I am trying to use this api but I am missing information on how to use it. Could you please provide an example of exactly which command should I use?

Thanks in advance,
Jldelda

@lalalandau
Copy link

Not sure if you're still looking at this a year later, but I just had the same experience/question.

After pip installing the package, you directly run a Python script file from the command line which indirectly runs the other modules in this package to handle requests to the Engagement API. You can get more details on how to use this command line interface by running python /path/to/tweet_engagements.py -h.

As I started exploring I found some intricacies in using this package. The path to where tweet_engagements.py gets placed by pip depends on if you're using Windows or Mac/Linux. The package also looks for a credential file in your home directory, but the function to do so in utils.py assumes you're using Linux/Mac and won't work on Windows without a small change to the HOME keyword.

I've just started digging into this, so there might be more details that I haven't gotten to. Also, this is an enterprise API that won't work with the keys you can generate from your personal Twitter account. Hopefully this helps or you found another solution in the last year!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants