Git Product home page Git Product logo

cp-badges's Introduction

CP-Badges

What if there are badges on Github profile that show our Codeforces ratings with the rating colour as well?

So I decided to make my own!

This repo helps you to create your custom profile badges with Max rating in Codechef, Codeforces and many more.

Maybe you can flaunt more with your coding badges now.

Show some ❤️ and ⭐ the repo to support the project


🛠 Installation

Use the package manager pip3 to install requirements file first.

pip3 install requirements.text

Endpoints

https://cp-logo.vercel.app/codeforces/<user_name>
https://cp-logo.vercel.app/codechef/<user_name>
https://cp-logo.vercel.app/atcoder/<user_name>
https://cp-logo.vercel.app/topcoder/<user_name>
https://cp-logo.vercel.app/yukicoder/<user_name>
https://cp-logo.vercel.app/uri/<user_name>
https://cp-logo.vercel.app/leetcode/<user_name>
https://cp-logo.vercel.app/leetcode-cn/<user_name>

Usage

[![Badge](https://cp-logo.vercel.app/codechef/gennady.korotkevich)]

This corresponds to

Badge

You can also show the logo along with the website name and rating by including the query parameter with the URL ?logo=true

For example

[![Badge](https://cp-logo.vercel.app/codechef/gennady.korotkevich?logo=true)]

This corresponds to

Badge

You can add custom links also to the badge for reference :

[![Badge](https://cp-logo.vercel.app/codechef/gennady.korotkevich)]
(https://www.codechef.com/users/gennady.korotkevich)

This will add a link to the badge

Badge

Fun Fact

The colour of the badge changes as your maximum rating changes according to the website policy.

Some examples are -

Badge Badge Badge

Badge Badge Badge

Badge Badge Badge

Badge Badge Badge

Badge Badge Badge

Badge Badge Badge

Badge

Badge

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPL-3.0 License

Star the Repo in case you liked it :)

cp-badges's People

Contributors

bitetheddddt avatar hwennnn avatar kehsihba19 avatar scortier avatar shubhamdhingra38 avatar sudhnsh avatar tilnoene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cp-badges's Issues

Support Leetcode-cn

Leetcode-cn and Leetcode have different apis, I developed a function to support Leetcode-cn
We can use it like http://127.0.0.1:5000/leetcode-cn/bitethed4t

Leetcode Rating

Can we Fetch Leetcode Ratings also? I tried using Beautiful Soup, unable to implement it.

Any Idea, how can we Fetch user ratings from Leetcode ?

Rating Colors on Codeforces are Wrongly Assigned

According to this (this rating table should be up to date), the rating boundary between Candidate Master and Master (should be 2099 but 2199 on data.py) seems wrong. My rating is 2132 now but the badge shows purple.
Badge

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.