yulingtianxia / FuckFakeGitHubStars

GitHub 虚假 Star 净网行动

Home Page:http://yulingtianxia.com/blog/2018/09/16/Fuck-Fake-GitHub-Stars/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FuckFakeGitHubStars

NOTICE: The results are for your reference only.

Usage

  1. Fill your GitHub secret token in fetchdata.py
  2. Set SEARCH_NODE_ID in fetchdata.py
  3. Run fetchdata.py
  4. Run processingdata.py
  5. See log files in data folder

You can get repo or user's node ID via GitHub GraphQL API.

GraphiQL example:

query {
  repository(owner: "CocoaDebug", name: "CocoaDebug") {
    id
  }
}

Result is MDEwOlJlcG9zaXRvcnkxMTc1MTM4NTI=

{
  "data": {
    "repository": {
      "id": "MDEwOlJlcG9zaXRvcnkxMTc1MTM4NTI="
    }
  }
}

Disclaimer

This is just some messy code. I really don't know what it is. Don't ask me!

About

GitHub 虚假 Star 净网行动

http://yulingtianxia.com/blog/2018/09/16/Fuck-Fake-GitHub-Stars/

License:MIT License


Languages

Language:Python 100.0%