-
Notifications
You must be signed in to change notification settings - Fork 5
/
github-issues.py
129 lines (121 loc) · 3.79 KB
/
github-issues.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import requests
access_token = '{GITHUB ACCESS TOKEN}'
repos = [
'agermanidis/pigeon',
'Autodesk/notebook-molecular-visualization',
'bmabey/pyLDAvis',
'bqplot/bqplot',
'carlos-gg/hciplot',
'centreborelli/pypotree',
'potree/potree/',
'cmudig/AutoProfiler',
'cuemacro/chartpy',
'dssg/aequitas',
'facebookresearch/hiplot',
'finos/perspective',
'google/brax',
'graphistry/pygraphistry',
'interpretml/interpret',
'interpretml/interpret-community',
'ipyannotate/ipyannotate',
'jessevig/bertviz',
'koaning/whatlies',
'merqurio/neo4jupyter',
'mwouts/itables',
'PatrikHlobil/Pandas-Bokeh',
'poliastro/czml3',
'poloclub/visual-auditor',
'python-visualization/folium',
'Quantomatic/pyzx',
'tensorflow/model-analysis',
'tensorflow/tensorboard'
'keplergl/kepler.gl',
'iseekwonderful/PyPathway',
'isl-org/Open3D',
'facebook/Ax',
'apache/beam',
'catboost/catboost',
'CQCL/pytket',
'sfu-db/dataprep',
'tkrabel/bamboolib',
'GeoscienceAustralia/dea-notebooks',
'enthought/mayavi',
'lightkurve/lightkurve',
'voxel51/fiftyone',
'eli5-org/eli5',
'zakandrewking/escher',
'keras-team/keras',
'flexxui/flexx',
'GateNLP/python-gatenlp',
'holoviz/geoviews',
'intake/intake',
'cytoscape/cytoscape.js',
'microsoft/LightGBM',
'MaartenGr/BERTopic',
'jupyter-incubator/sparkmagic'
'executablebooks/MyST-NB',
'nilearn/nilearn',
'QuSTaR/kaleidoscope',
'holoviz/panel',
'pixiedust/pixiedust',
'plotly/dash',
'cytoscape/py2cytoscape',
'pycaret/pycaret',
'pydgrid/pydgrid',
'InsightLab/PyMove',
'intuitivetextmining/d3fdgraph',
'Elysian01/Data-Purifier',
'datapane/datapane',
'igvteam/igv',
'patrickfuller/imolecule',
'InsightSoftwareConsortium/itkwidgets',
'JupyterPhysSciLab/JupyterPiDAQ',
'sdpython/jyquickhelper',
'cbouy/mols2grid',
'ydataai/ydata-profiling',
'adamerose/PandasGUI',
'VIDA-NYU/PipelineVis',
'visgl/deck.gl',
'hyriver/pygeohydro',
'quantopian/qgrid',
'ranaroussi/quantstats',
'sid-the-coder/QuickDA',
'microsoft/responsible-ai-toolbox',
'fbdesignpro/sweetviz',
'mikedh/trimesh',
'facebookresearch/vizseq',
'PAIR-code/what-if-tool',
'jnowak90/GraVisGUI',
'slundberg/shap',
'Mr-Milk/SpatialTis',
'sandialabs/toyplot',
'wandb/wandb',
'nengo/nengo',
'pathpy/pathpy'
]
keywords = ['notebook', 'jupyter', 'colab', 'kaggle']
headers = {
'Authorization': f'token {access_token}'
}
for repo_name in repos:
url = f'https://api.github.com/repos/{repo_name}/issues?state=all'
response = requests.get(url, headers=headers)
repo_name_string = repo_name.replace('/', '_')
with open(f'{repo_name_string}-issues.txt', 'a') as f:
f.write(f'{repo_name}\n')
for issue in response.json():
try:
comments_url = issue['comments_url']
comments_response = requests.get(comments_url, headers=headers)
comments = comments_response.json()
title = issue['title']
description = issue['body']
if any(keyword in title.lower() for keyword in keywords) or any(keyword in description.lower() for keyword in keywords):
with open(f'{repo_name_string}-issues.txt', 'a') as f:
f.write('\n------------------------------------------------------------------------------------------------------------------------------------------\n')
f.write(f'{title}: {issue["html_url"]}\n')
f.write(f'Description: {description}\n')
for comment in comments:
f.write(f'\t{comment["user"]["login"]}: {comment["body"]}\n')
except:
pass