New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

githon

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

githon

A simple Data Scraping library for GitHub REST API v3

  • 0.7.0
  • PyPI
  • Socket score

Maintainers
1

githon

Current version at PyPI Supported Python Versions Software status PyPI GitHub issues GitHub forks GitHub stars Donate

Githon is a python library that provides a GitHub REST API v3 Data Scraping.

With this library you can:

  • Request user data through username or user ID
  • Control request errors easily
  • Use Application tokens or Personal User tokens to request data
  • Reduce spending on your requisition limit

Installation

Run the command:

pip install githon

How to use

Import the GithubApi class and create an object. Optionally pass an access token to constructor.

>>> from githon import GithubApi
>>> gh = GithubApi('YOUR_ACCESS_TOKEN')

NOTE: With access_token, your rate limit will be 5000 requests per hour. If you don't provide an access_token, your number of requests will be limited to 60 requests per hour, according with GitHub REST API v3 docs. See more in https://developer.github.com/v3/#rate-limitingUse.

Sample code:

>>> gh.user_by_username('marcosvbras')
{ 'blog': 'https://about.me/marcosvbras', 'followers': 7, 'following': 28, ...}

Methods

  • user_by_username: Request user based in Github login.
  • user_by_id: Request user based in Github User ID.
  • user_emails: Retrieve a list of emails from a given access_token. Requires the user access token.
  • followers_by_id: Request the user followers based in Github login.
  • followers_by_username: Request the user followers based in Github ID.
  • following_by_id: Request the user following based in Github ID.
  • following_by_username: Request the user following based in Github login.
  • gists_by_id: Request the user gists based in Github ID.
  • gists_by_username: Request the user gists based in Github login.
  • repositories_by_id: Request the user repositories based in Github ID.
  • repositories_by_username: Request the user repositories based in Github login.
  • search_users: Search users with a Github query.
  • get_request_limit: Request the API Rate Limit to your token.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc