A python library to scrape github
Project description
Gitscrpy
A python library to scrape github.
Simple to use syntax
Install using pip
Install
pip install gitscrpy
Run
from gitscrpy import getgit
# Imports the package
a=getgit.gitinit("fredysomy")
# Initialize
# User repository functions
a.getrepo(n)
# return the first n repos in the users repository list.
a.getrepo(2)
# [{'name': 'MarkdownIt', 'description': 'Efficient Code Editor to live render Markdown and save as Markdown,Html and Pdf +âš¡ Instant Hosting in The Web.âš¡', 'url': 'https://github.com/fredysomy/MarkdownIt', 'stars': '13'}, {'name': 'fredysomy', 'url': 'https://github.com/fredysomy/fredysomy', 'stars': '4'}]
a.getrepo(1)
# {'name': 'MarkdownIt', 'description': 'Efficient Code Editor to live render Markdown and save as Markdown,Html and Pdf +âš¡ Instant Hosting in The Web.âš¡', 'url': 'https://github.com/fredysomy/MarkdownIt', 'stars': '13'}
# User details functions
a.getuser("star")
# Retrun no of stars user have
# 172
a.getuser("name")
# Returns the name of the User
# Fredy Somy
a.getuser("u_name")
# Returns the Username of the User
# fredysomy
a.getuser("follower")
# Returns no of followers the User
# 25
a.getuser("following")
# Returns the no of following the User
# 60
a.getuser("img")
# Returns the link to the User avatar
# https://hfsjdhfjshd.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitscrpy-0.3.2.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for gitscrpy-0.3.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24dc6535f0a71333c223d207e762074b0e8dfc0f2d2a9d2c28844bb2a44c448f |
|
MD5 | 71d0ad942b976c844ce263361afb59e5 |
|
BLAKE2b-256 | d58c83c271b45e83789b556c880b4a40661c63e93266c64e6acb6dca04e74e82 |