Giter VIP home page Giter VIP logo

leetcomp's Introduction

⚠️ This repo is no longer maintained, check out https://github.com/kuutsav/leetcode-compensation ⚠️

LeetComp

example workflow Code style: black Checked with mypy

Analysing compensations mentioned on the Leetcode forums.

Note: Only supports posts from India at the moment.

LeetComp works by regularly fetching new posts from the leetcode compensations page. The leetcomp directory contains python scripts to fetch and parse new posts. New posts are updated in posts.db, a SQLite database. The parsed posts are updated directly into js/data.js which helps power the content in index.html.

IMO, this tool can be best used to figure out the "software developer salaries in india" across various experience levels.


The app is hosted at https://kuutsav.github.io/LeetComp/ using github pages.

Setup

# Install poetry following the instructions at https://python-poetry.org/docs or use pip
$ pip install poetry

# Setup the project (from the project root directory)
$ poetry install

# To run the commands for updating the data, go into the venv created by poetry
$ poetry shell

# Tested on python 3.9.7

Updating data

$ poetry shell
$ export PYTHONPATH=.
$ python update.py

-----------Fetching posts meta info-----------
Found 6835 posts(456 pages)
73 posts synced, skipping the rest ...
---------Updating posts with content----------
Found 73 post ids without content, syncing ...
PostID 1786560;   0/73 posts done
PostID 1783572;  10/73 posts done
PostID 1781876;  20/73 posts done
PostID 1780132;  30/73 posts done
PostID 1779056;  40/73 posts done
PostID 1777850;  50/73 posts done
PostID 1776532;  60/73 posts done
PostID 1775146;  70/73 posts done
All posts synced
----------------Parsing posts----------------
Total posts: 6905
N posts dropped (missing data): 1448
Posts with all the info: 5468
Posts with Location: 5150
Posts with YOE: 5385
Posts from India: 3923
Posts with Total Comp: 2257
Dropped 181/3923 records due to invalid pay
-----------Building inverted index------------
Keeping 1303/1303 tokens

leetcomp's People

Contributors

dependabot[bot] avatar kuutsav avatar siddhant-k-code avatar sumanth108 avatar system1970 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

leetcomp's Issues

Not updating the list

LeetComp is not updating the list as the last date on which it was updated is 30th July 2022,
Would be great if you could look into the matter

Thanks for the Awesome work @kuutsav .. would Love to add more functionality to it and make it more promising in near future

Issue with searching with YOE

I have noticed that we can not search on queries by providing YOE as another filter. It may be because we are sending a new request for query and we are not sending min_yoe value with that and vice-versa.

Update the DB in sync with Leetcode

Please update the DB in sync with Leetcode's recent compensations.
current date - 2023/09/26
The latest compensation data visible on Leetcomp is from 2023-07-22 which is bit older.

image

Automate Data Update using GitHub Actions

Discussion Required

We Can Automate the Data by Setting Up the cron job (let's say for every 12hrs) using GitHub Actions.

Things We Require:

  • List of Python Scripts/ Commands which would be executed.
  • Env. Vars, if any

Let me know the manual process to update the data.

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.