https://github.com/xdevplatform/json-to-csv-livestream
https://github.com/xdevplatform/json-to-csv-livestream
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xdevplatform/json-to-csv-livestream
- Owner: xdevplatform
- License: apache-2.0
- Created: 2021-03-16T14:35:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-16T18:12:39.000Z (almost 5 years ago)
- Last Synced: 2025-02-15T07:51:43.316Z (11 months ago)
- Language: Jupyter Notebook
- Size: 91.8 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Code from JSON to CSV livestream
Code from a live session on March 16th 2020. In this session we discussed how to start working with the data returned from v2 of the Twitter API. We covered how to work with nested JSON and send your data to a CSV.
## Setting up your environment variable
For all the code samples you will first need to set up an environment variable in your terminal to save your bearer token to your request. You will need to replace your-bearer-token with your own bearer token. Be sure to keep the single quotes around your bearer token.
```bash
export BEARER_TOKEN='your-bearer-token'
```
## Links and Resources
- [Apply for access](https://developer.twitter.com/en/apply-for-access)
- [Step by step guide to your first request](https://dev.to/twitterdev/step-by-step-guide-to-making-your-first-request-to-the-new-twitter-api-v2-42mi)
- [Timeslines docs](https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/introduction)
- [Recent search docs](https://developer.twitter.com/en/docs/twitter-api/tweets/search/introduction)
- [JSON to CSV site](https://konklone.io/json/)
- [csvkit docs](https://csvkit.readthedocs.io/en/latest/)
- [Running a Jupyter notebook](https://jupyter.readthedocs.io/en/latest/running.html)
- [Pandas docs](https://pandas.pydata.org/docs/)
- [Twarc expansions](https://github.com/DocNow/twarc/blob/v2/twarc/expansions.py)
## Contributing
We welcome pull requests that add meaningful additions to these code samples, particularly for languages that are not yet represented here.
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