Commit 6eb41ab1 by jijins

New updates

1 parent 7ac9bfa0
Showing with 70 additions and 19 deletions
git clone http://pawan@projects.rapidor.co/pawan/general.git
Run the command like this:-
python search.py search_arg
example:- python search.py apache
Result:-
URL DESCIPTION
-----------------------------------------------------------------------------
https://github.com/apache/incubator-superset Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application
https://github.com/apache/spark Mirror of Apache Spark
https://github.com/apache/incubator-predictionio PredictionIO, a machine learning server for developers and ML engineers. Built on Apache Spark, HBase and Spray.
https://github.com/phanan/htaccess A collection of useful .htaccess snippets.
https://github.com/apache/kafka Mirror of Apache Kafka
https://github.com/apache/incubator-airflow Apache Airflow (Incubating)
https://github.com/allinurl/goaccess GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://github.com/apache/incubator-weex Mirror of Apache Weex
https://github.com/thinkgem/jeesite JeeSite 是一个企业信息化开发基础平台,Java企业应用开源框架,Java EE(J2EE)快速开发框架,使用经典技术组合(Spring、Spring MVC、Apache Shiro、MyBatis、Bootstrap UI),包括核心模块如:组织机构、角色用户、权限授权、数据权限、内容管理、工作流等。
https://github.com/apache/storm Mirror of Apache Storm
https://github.com/yahoo/kafka-manager A tool for managing Apache Kafka.
https://github.com/alibaba/rocketmq Apache RocketMQ
https://github.com/apache/thrift Mirror of Apache Thrift
https://github.com/apache/cassandra Mirror of Apache Cassandra
https://github.com/apache/hadoop Mirror of Apache Hadoop
https://github.com/mesosphere/marathon Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://github.com/apache/zookeeper Mirror of Apache Hadoop ZooKeeper
https://github.com/scylladb/scylla NoSQL data store using the seastar framework, compatible with Apache Cassandra
https://github.com/apache/mesos Mirror of Apache Mesos
https://github.com/apache/couchdb Apache CouchDB
https://github.com/orientechnologies/orientdb OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text, Geospatial and Key-Value models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries. OrientDB Community Edition is Open Source using a liberal Apache 2 license.
https://github.com/apache/zeppelin Mirror of Apache Zeppelin
https://github.com/yahoo/anthelion Anthelion is a plugin for Apache Nutch to crawl semantic annotations within HTML pages
https://github.com/apache/flink Mirror of Apache Flink
https://github.com/Activiti/Activiti Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under the Apache license. Activiti runs in any Java application, on a server, on a cluster or in the cloud. It integrates perfectly with Spring, it is extremely lightweight and based on simple concepts.
https://github.com/apache/rocketmq Mirror of Apache RocketMQ
https://github.com/lrsjng/h5ai HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee.
https://github.com/JerryLead/SparkInternals Notes talking about the design and implementation of Apache Spark
https://github.com/apache/groovy Mirror of Apache Groovy
https://github.com/twitter/distributedlog A high performance replicated log service. (The development is moved to Apache Incubator)
-----------------------------------------------------------------------------
Unique list of programming languages:- Python,Scala,None,Java,C,JavaScript,None,C++,Erlang,None
Average star rating:- 4942
......@@ -2,26 +2,32 @@
import urllib2
import json
import sys
search_q = 'playframework'
def main():
search_q = sys.argv[1]
if not search_q:
search_q = 'test'
url = 'https://api.github.com/search/repositories?q=%s&sort=stars&order=desc' % search_q
response = urllib2.urlopen(url)
result = json.loads(response.read())
items = result['items']
languages = []
count = 0
stargazers_count = 0
print "URL DESCIPTION"
print "-----------------------------------------------------------------------------"
for item in items[:50]:
count += 1
stargazers_count += item['stargazers_count']
if str(item['language']) not in languages:
languages.append(str(item['language']))
print item["html_url"]," ",item["description"]
print "-----------------------------------------------------------------------------"
url = 'https://api.github.com/search/repositories?q=%s&sort=stars&order=desc' % search_q
response = urllib2.urlopen(url)
result = json.loads(response.read())
items = result['items']
languages = []
count = 0
stargazers_count = 0
print "URL DESCIPTION"
print "-----------------------------------------------------------------------------"
for item in items:
count += 1
stargazers_count += item['stargazers_count']
if item['language'] not in languages:
languages.append(item['language'])
print item["html_url"]," ",item["description"]
print "-----------------------------------------------------------------------------"
print "Unique list of programming languages:-", ",".join(languages )
print "Unique list of programming languages:-", ",".join(languages )
print "Average star rating:-",stargazers_count/count
print "Average star rating:-",stargazers_count/count
if __name__ == "__main__":
main()
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!