twarc
A command line tool (and Python library) for archiving Twitter JSON
Science Score: 20.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
18 of 71 committers (25.4%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.3%) to scientific vocabulary
Keywords from Contributors
Repository
A command line tool (and Python library) for archiving Twitter JSON
Basic Info
- Host: GitHub
- Owner: DocNow
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://twarc-project.readthedocs.io
- Size: 2.68 MB
Statistics
- Stars: 1,383
- Watchers: 33
- Forks: 256
- Open Issues: 49
- Releases: 131
Metadata Files
README.md
twarc
twarc is a command line tool and Python library for collecting and archiving Twitter JSON data via the Twitter API. It has separate commands (twarc and twarc2) for working with the older v1.1 API and the newer v2 API and Academic Access (respectively).
- Read the documentation
- Ask questions here in GitHub, in Slack or Matrix
twarc has been developed with generous support from the Mellon Foundation.
Contributing
New features are welcome and encouraged for twarc. However, to keep the core twarc library and command line tool sustainable we will look at new functionality with the following principles in mind:
- Purpose: twarc is for collection and archiving of Twitter data via the Twitter API.
- Sustainability: keeping the surface area of twarc and it's dependencies small enough to ensure high quality.
- Utility: what is exposed by twarc should be applicable to different people, projects and domains, and not specific use cases.
- API consistency: as much as sensible we aim to make twarc consistent with the Twitter API, and also aim to make twarc consistent with itself - so commands in core twarc should work similarly to each other, and twarc functionality should align towards the Twitter API.
For features and approaches that fall outside of this, twarc enables external packages to hook into the twarc2 command line tool via click-plugins. This means that if you want to propose new functionality, you can create your own package without coordinating with core twarc.
Documentation
The documentation is managed at ReadTheDocs. If you would like to improve the documentation you can edit the Markdown files in docs or add new ones. Then send a pull request and we can add it.
To view your documentation locally you should be able to:
pip install -r requirements-mkdocs.txt
pip install -e .
mkdocs serve
open http://127.0.0.1:8000/
If you prefer you can create a page on the wiki to workshop the documentation, and then when/if you think it's ready to be merged with the documentation create an issue. Please feel free to create whatever documentation is useful in the wiki area.
Code
If you are interested in adding functionality to twarc or fixing something that's broken here are the steps to setting up your development environment:
git clone https://github.com/docnow/twarc
cd twarc
pip install -r requirements.txt
Create a .env file that included Twitter App keys to use during testing:
BEARER_TOKEN=CHANGEME
CONSUMER_KEY=CHANGEME
CONSUMER_SECRET=CHANGEME
ACCESS_TOKEN=CHANGEME
ACCESS_TOKEN_SECRET=CHANGEME
Now run the tests:
python setup.py test
Add your code and some new tests, and send a pull request!
Owner
- Name: Documenting the Now
- Login: DocNow
- Kind: organization
- Email: info@docnow.io
- Website: http://www.docnow.io
- Repositories: 43
- Profile: https://github.com/DocNow
tools supporting the ethical collection, use, and preservation of social media
GitHub Events
Total
- Issues event: 1
- Watch event: 25
- Fork event: 3
Last Year
- Issues event: 1
- Watch event: 25
- Fork event: 3
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ed Summers | e****s@p****m | 778 |
| Igor Brigadir | i****r@g****m | 257 |
| Sam Hames | s****s@q****u | 104 |
| hugovk | h****k | 80 |
| Peter Binkley | p****y@u****a | 37 |
| Justin Littman | j****n@g****u | 23 |
| Francis Kayiwa | k****a@p****u | 20 |
| tinafigueroa | 3****a | 20 |
| nruest | r****n@g****m | 11 |
| Daniel Chudnov | d****d@u****u | 9 |
| Walmir | w****n@g****m | 9 |
| David Thiel | d****l@s****u | 7 |
| Elizabeth Alpert | e****t@q****u | 6 |
| cosmicoptima | p****l@g****m | 6 |
| Ryan Chartier | r****i@u****a | 6 |
| Alex Leith | a****h@t****g | 6 |
| hauselin | h****n@g****m | 5 |
| Frederik Elwert | f****t@r****e | 4 |
| kngoledge | k****e@g****m | 4 |
| Daniyal | d****n@g****m | 4 |
| Melanie Walsh | m****h@w****u | 4 |
| Andreas Segerberg | a****g@g****m | 4 |
| ianmilligan1 | i****n@u****a | 4 |
| R. Miles McCain | d****e@s****l | 4 |
| Mirko Lenz | i****o@m****e | 4 |
| Andy Chosak | c****k | 4 |
| Alice Miller | a****r@q****u | 4 |
| Leonard Lausen | l****d@l****l | 3 |
| haruna | w****w@y****p | 3 |
| nicholas | w****s@g****m | 3 |
| and 41 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 76
- Total pull requests: 30
- Average time to close issues: 21 days
- Average time to close pull requests: 20 days
- Total issue authors: 40
- Total pull request authors: 12
- Average comments per issue: 4.5
- Average comments per pull request: 1.6
- Merged pull requests: 24
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- igorbrigadir (21)
- edsu (5)
- myrainbowandsky (4)
- santoshbs (3)
- SamHames (3)
- numeroteca (3)
- HarryHe11 (2)
- frogger (2)
- miguelwon (2)
- lutemis (1)
- tadavoila (1)
- axhiao (1)
- fishfree (1)
- hauselin (1)
- aborruso (1)
Pull Request Authors
- igorbrigadir (10)
- SamHames (9)
- edsu (2)
- hauselin (1)
- mirkolenz (1)
- ntorba (1)
- eferm (1)
- boyd-nguyen (1)
- Quiet27 (1)
- tirkarthi (1)
- betsybookwyrm (1)
- CharleoY (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 5
-
Total downloads:
- homebrew 18 last-month
- pypi 3,870 last-month
-
Total dependent packages: 4
(may contain duplicates) -
Total dependent repositories: 97
(may contain duplicates) - Total versions: 497
- Total maintainers: 2
pypi.org: twarc
Archive tweets from the command line
- Homepage: https://github.com/docnow/twarc
- Documentation: https://twarc.readthedocs.io/
- License: MIT
-
Latest release: 2.14.0
published over 3 years ago
Rankings
Maintainers (2)
proxy.golang.org: github.com/DocNow/twarc
- Documentation: https://pkg.go.dev/github.com/DocNow/twarc#section-documentation
- License: mit
-
Latest release: v2.14.0+incompatible
published over 3 years ago
Rankings
proxy.golang.org: github.com/docnow/twarc
- Documentation: https://pkg.go.dev/github.com/docnow/twarc#section-documentation
- License: mit
-
Latest release: v2.14.0+incompatible
published over 3 years ago
Rankings
conda-forge.org: twarc
- Homepage: https://github.com/docnow/twarc
- License: MIT
-
Latest release: 2.12.0
published over 3 years ago
Rankings
formulae.brew.sh: twarc
Command-line tool and Python library for archiving Twitter JSON
- Homepage: https://github.com/DocNow/twarc
- License: MIT
-
Latest release: 2.14.0
published over 3 years ago
Rankings
Dependencies
- click >=7,<9
- click-config-file >=0.6
- click-plugins >=1
- humanize >=3.9
- mkdocs >=1.2
- mkdocs-click >=0.4
- mkdocs-material >=7.2
- mkdocstrings >=0.15
- python-dateutil >=2.8
- requests_oauthlib >=1.3
- tqdm >=4.62
- click >=7,<9
- click-config-file >=0.6
- click-plugins >=1
- humanize >=3.9
- python-dateutil >=2.8
- requests_oauthlib >=1.3
- tqdm >=4.62
- actions/checkout v2 composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish release/v1 composite
- rtCamp/action-slack-notify v2 composite