GithubHelp home page GithubHelp logo

vinitshahdeo / github-popular-searches Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 84 KB

A Postman Collection to find the popular repositories for a given search query.

Home Page: https://vinitshahdeo.github.io/GitHub-Popular-Searches/

License: MIT License

postman-collection postman-example npm-api github-api sentiment-analysis

github-popular-searches's Introduction

GitHub Popular Searches

Github Popular Searces Postman Collection

A Postman collection to discover popular repositories on GitHub for a given search query. It sends the popular repository on Slack channel.

This collection is published here.

  _____   ____   _____ _______ __  __          _   _ 
 |  __ \ / __ \ / ____|__   __|  \/  |   /\   | \ | |
 | |__) | |  | | (___    | |  | \  / |  /  \  |  \| |
 |  ___/| |  | |\___ \   | |  | |\/| | / /\ \ | . ` |
 | |    | |__| |____) |  | |  | |  | |/ ____ \| |\  |
 |_|     \____/|_____/   |_|  |_|  |_/_/    \_\_| \_|
                                                     
                                                     

How does it work?

  • Put a search query for GitHub Repositories

  • Fetch GitHub Repo URLs through API call to NPM

  • Collect all the comments, download count, stars count, fork count from GitHub API

  • Perform Sentiment Analysis on Comments

  • Suggest best available repository for given search term on Slack

Run in Postman

Set the following environment variables before you run this collection :

  • {{searchTerm}} : the query you want to search
  • {{maxSize}} : maximum number of repositories you want to fetch

It sends the popular repository on Slack channel using webhook.

This collection uses Github API to fetch comments and sends a report to an internal Slack channel using a webhook.

API Calls made

Thanks

  1. GET npm search - API call to NPM to fetch the popular GitHub Repositories for a given search query.
http://registry.npmjs.com/-/v1/search?text={{searchTerm}}&size={{maxSize}}
  1. GET fetch comments - Fetching comments for each repositories using GitHub API.
https://api.github.com/repos/{{userName}}/{{repoName}}/comments  
  • {{repoName}} : Name of the GitHub repository
  • {{userName}} : GitHub username for the given repository
  1. POST calculate sentiments - Calculating sentiment using ParallelDots API for the comments of given GitHub repository.
https://apis.paralleldots.com/v3/sentiment?text={{sentimentText}}&api_key={{apiKey}}
  1. POST push to slack - Pushing most popular repos to Slack using webhook.
https://hooks.slack.com/services/XXXXXXXXX

Made by Vinit Shahdeo Powered By

Thanks!

Glad to see you here! I'm social. Let's get connected.

     

github-popular-searches's People

Watchers

 avatar  avatar  avatar

Forkers

muskanmahajan37

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.