Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xdevplatform/run-your-favorite-python-package-in-r

An example of how to call a the Twitter API from a Python package inside of R.
https://github.com/xdevplatform/run-your-favorite-python-package-in-r

python r twitter

Last synced: 2 days ago
JSON representation

An example of how to call a the Twitter API from a Python package inside of R.

Awesome Lists containing this project

README

        

# Run your favorite Python package in R

A code sample that shows you how to call the [Labs Recent Search endpoint](https://developer.twitter.com/en/docs/labs/recent-search/overview) using the Python package [Requests](https://requests.readthedocs.io/en/master/) inside of R. There is a [blog post](https://blog.twitter.com/developer/en_us/topics/tips/2020/running-the-python-package-for-search-tweets-in-r.html) on a related code sample available as well.

For this sample to run you will need to set up a configuration file with your secrets, a sample of this can be found under `secret.yaml`. Be sure to add your `secret.yaml` to your `.gitignore` and check out [our guide on securing keys and tokens](https://developer.twitter.com/en/docs/basics/authentication/guides/securing-keys-and-tokens).

Created by [Jessica Garson](https://twitter.com/jessicagarson) using [R Studio](https://rstudio.com/).

## Support

Create a [new issue](https://github.com/twitterdev/search-tweets-python-in-r/issues) on GitHub.

## Contributing

We feel that a welcoming community is important and we ask that you follow Twitter's
[Open Source Code of Conduct](https://github.com/twitter/code-of-conduct/blob/master/code-of-conduct.md)
in all interactions with the community.

## License

Copyright 2020 Twitter, Inc.

Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0