
    i                     N    d Z ddlmZ ddlmZ dddddd	d
ZddgZdZdZd Z	d Z
y)zGithub (IT)    )	urlencode)parserzhttps://github.com/Q364z https://developer.github.com/v3/TFJSON)websitewikidata_idofficial_api_documentationuse_official_apirequire_api_keyresultsitreposzHhttps://api.github.com/search/repositories?sort=stars&order=desc&{query}z.application/vnd.github.preview.text-match+jsonc                 f    t         j                  t        d| i            |d<   t        |d   d<   |S )Nq)queryurlheadersAccept)
search_urlformatr   accept_header)r   paramss     %/root/searxng/searx/engines/github.pyrequestr      s6    %%IsEl,C%DF5M"/F9hM    c                 r   g }| j                         j                  dg       D ]  }dD cg c]%  }|j                  |      s|j                  |      ' }}|j                  d      xs i }d }|j                  d      rd|j                  d       d}|j                  d|j                  d      |j                  d	      d
j                  |      |j                  di       j                  d      |j                  d      |j                  di       j                  d      t	        j
                  |j                  d      xs |j                  d            |j                  dg       |j                  d      |j                  d      ||j                  d      |j                  d      d        |S c c}w )Nitems)languagedescriptionlicensespdx_idzhttps://spdx.org/licenses/z.htmlzpackages.htmlhtml_url	full_namez / owner
avatar_urlnamelogin
updated_at
created_attopicsstargazers_counthomepage	clone_url)templater   titlecontent	thumbnailpackage_name
maintainerpublishedDatetags
popularitylicense_namelicense_urlr,   source_code_url)jsongetappendjoinr   parse)respr   itemir0   liclic_urls          r   responserD   !   ss   G		, 
(CS1txxPQ{488A;SS hhy!'R779237793E2FeLG+xx
++. ::g.!XXgr266|D $ 0"hhw377@!'dhh|.D.^Q]H^!_2."hh'9: #& HHZ0#'88K#8	

: N9 Ts   F4F4N)__doc__urllib.parser   dateutilr   about
categoriesr   r   r   rD    r   r   <module>rK      sK     "  %"D	 G_
 X
@ r   