• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

doforce/github-trending: GitHub trending API powered by Python Tornado.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

doforce/github-trending

开源软件地址:

https://github.com/doforce/github-trending

开源编程语言:

Python 99.4%

开源软件介绍:

Github trending

github.png

This project is a GitHub trending API power by Python Tornado. It was deployed on Heroku.


All the requests main adrress is this:https://trendings.herokuapp.com

Get the trending repository

request address like this:

/repo

  • If the language contains '#',you must use '-shuo' to replace it.

Parameters

Name Type Description
lang string optional, get method parameter, the language of trending repository
since string optional,get method parameter,default is daily,others is weekly,monthly

For example request this address: https://trendings.herokuapp.com/repo?lang=java&since=weekly

return:

//status code: 201
{
  "count": 25,
  "msg": "suc",
  //trending repositories
  "items": [
    {
      //the avatar link of contributors
      "avatars": [
        "https://avatars0.githubusercontent.com/u/16903644?v=3&s=40",
        "https://avatars2.githubusercontent.com/u/8622362?v=3&s=40",
        "https://avatars0.githubusercontent.com/u/10773353?v=3&s=40",
        "https://avatars3.githubusercontent.com/u/6392550?v=3&s=40",
        "https://avatars1.githubusercontent.com/u/3837836?v=3&s=40"
      ],
      //repository link
      "repo_link": "https://github.com/kdn251/interviews",
      //repository desctiption
      "desc": "Everything you need to know to get the job.",
      //repository name
      "repo": "kdn251/interviews",
      //the repository stars count
      "stars": "5,772",
       //the repository forks count
      "forks": "539",
      //the language of repository
      "lang": "Java",
      //the repository stars count for tody or this week or this month
      "added_stars": "4,591 stars this week"
    },
    .
    .
    .
  ]
}

Get the trending developers

request address like this:

/developer

  • If the language contains '#',you must use '-shuo' to replace it.

Parameters

Name Type Description
lang string optional, get method parameter, maybe it is the major language of the developer
since string optional,get method parameter,default is daily,others is weekly,monthly

For example request this address: https://trendings.herokuapp.com/developer?lang=java&since=weekly

return:

//status code: 201
{
  "count": 25,
  "msg": "suc",
  //the trending developers
  "items": [
    {
      //the username in GitHub of this developer
      "user": "google",
      //the main page in GitHub of this developer
      "user_link": "https://github.com/google",
      //the full name of this developer
      "full_name": "(Google)",
      //the avatar url of the developer
      "developer_avatar": "https://avatars1.githubusercontent.com/u/1342004?v=3&s=96"
    },
    .
    .
    .
]
}

Get all the all the avialiable trending languages in GitHub.

For example,request this address: https://trendings.herokuapp.com/lang

return:

//status code: 201
{
    "count": 464,
    "items": [
        "1C-Enterprise",
        "ABAP",
        "ABNF",
        "ActionScript",
        "Ada",
        .
        .
        .
        "YANG",
        "Zephir",
        "Zimpl"
    ],
    "msg": "suc"
}

Exception

If the server does not get the resources,the response will be that:

//status code: 404
{
  "msg": "Unavailable.",
  "count":0,
  "items": []
}

Maintenance

If some of the interface can not be used,please contact me with email:[email protected],I will modify the problem as soon as possible,thank you!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap