Skip to content

jrdeng/github-issue-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github issue fetcher

use Github GraphQL API to fetch issues of the specified repository on github.

I'm using these scripts to fetch issues then generate static website(by using Hugo). see blog-hugo/generate_and_deploy.py

written in Python3, and depends on these modules:

  • requests
  • eventlet

usage

  1. install the dependencies

  2. to use this script, you also need a token to access the GraphQL API, please take a look at Authenticating with GraphQL.

usage:

$ git clone https://github.com/jrdeng/github-issue-fetcher.git
# or use as submodule

# import to your project
import sys
sys.path.append('github-issue-fetcher')
import fetcher
issue_list = fetcher.fetch_issues(token, owner, repo)

the owner and repo specified whose/which repository you want.

you will get a list of object Issue which defined in gql/issue.py.

mostly, you'll need to modify the query_str in gql/gql.py to fetch the data you want. and modify the class Issue to parse the result.

for convenience, there's a sample() in fetcher.py.

license

WTFPL

About

using Github GraphQL API to fetch issues of the specified repository on github.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages