https://github.com/andrewpetrochenkov/github-octolytics.py
:octocat: github octolytics parser
https://github.com/andrewpetrochenkov/github-octolytics.py
github python
Last synced: about 2 months ago
JSON representation
:octocat: github octolytics parser
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/github-octolytics.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2019-10-27T14:49:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T20:57:41.000Z (over 5 years ago)
- Last Synced: 2026-03-10T17:03:13.274Z (4 months ago)
- Topics: github, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://pypi.org/project/github-octolytics/)
[](https://unlicense.org/)
[](https://github.com/andrewp-as-is/github-octolytics.py/actions)
### Installation
```bash
$ [sudo] pip install github-octolytics
```
#### Examples
```python
>>> import github_octolytics
>>> github_octolytics.get('https://github.com/django/django')
{'octolytics-host': 'collector.githubapp.com', 'octolytics-app-id': 'github', 'octolytics-event-url': 'https://collector.githubapp.com/github-external/browser_event', 'octolytics-dimension-request_id': '6C86:1AB6A:1553F2A:20148E0:5DB5986A', 'octolytics-dimension-region_edge': 'ams', 'octolytics-dimension-region_render': 'iad', 'octolytics-dimension-ga_id': '', 'octolytics-dimension-visitor_id': 6848789782742800491, 'octolytics-dimension-user_id': 27804, 'octolytics-dimension-user_login': 'django', 'octolytics-dimension-repository_id': 4164482, 'octolytics-dimension-repository_nwo': 'django/django', 'octolytics-dimension-repository_public': True, 'octolytics-dimension-repository_is_fork': False, 'octolytics-dimension-repository_network_root_id': 4164482, 'octolytics-dimension-repository_network_root_nwo': 'django/django', 'octolytics-dimension-repository_explore_github_marketplace_ci_cta_shown': False}
```
```python
>>> import requests
>>> r = requests.get('https://github.com/django/django')
>>> github_octolytics.parse(r.text)
{...}
```