Skip to main content

github octolytics parser

Project description

Installation

$ [sudo] pip install github-octolytics

Functions

function __doc__
github_octolytics.get(url) make GET request and return a dictionary with octolytics data
github_octolytics.parse(html) parse a html string and return a dictionary with octolytics data

Examples

>>> 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}
>>> import requests
>>> r = requests.get('https://github.com/django/django')
>>> github_octolytics.parse(r.text)
{...}

python-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github-octolytics-2019.10.27.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file github-octolytics-2019.10.27.tar.gz.

File metadata

  • Download URL: github-octolytics-2019.10.27.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for github-octolytics-2019.10.27.tar.gz
Algorithm Hash digest
SHA256 62362a8a747426b46409aaffcb908673157baca9045775d5f378a3e537266b60
MD5 8c3d5cde9db392b98285ec983dc2de8e
BLAKE2b-256 3535e1bedfc64e10f8704ea8d23179213e18ab836977aae297d9bd9a878e29be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page