Git Product home page Git Product logo

leetcode-compensation's Introduction

Leetcode Compensations report

Scraping and analysis of the leetcode-compensations page (for India).

Check out https://github.com/kuutsav/LeetComp for an interactive version of this report.

Salary

Reports

-- Fixed salary: 29th Dec 2022 - 17th Dec 2023
-- Total salary: 29th Dec 2022 - 17th Dec 2023
-- Fixed salary(Dark mode): 29th Dec 2022 - 17th Dec 2023
-- Total salary(Dark mode): 29th Dec 2022 - 17th Dec 2023

-- Fixed salary: 5th Jan 2019 - 18th Jan 2022
-- Total salary: 5th Jan 2019 - 18th Jan 2022
-- Fixed salary(Dark mode): 5th Jan 2019 - 18th Jan 2022
-- Total salary(Dark mode): 5th Jan 2019 - 18th Jan 2022

Setup

$ git clone <repo>
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt

Data update

First we need to fetch the posts metadata. This inlvolves fetching the post ids from each page (till_date -> today).

$ source .venv/bin/activate
$ PYTHONPATH=. python leetcode/posts_meta.py --till_date 2023/01/01

The next step if to fetch the actual post content for each of the post ids from the previous step.

$ source .venv/bin/activate
$ PYTHONPATH=. python leetcode/posts.py --posts_meta F

Generating the reports

$ source .venv/bin/activate

$ python scripts/plots.py  # generate fixed comp. plots
$ python scripts/report.py  # fixed comp.
$ python scripts/report_dark.py  # fixed comp., dark mode

$ python scripts/plots_total.py  # generate total comp. plots
$ python scripts/report_total.py  # total comp.
$ python scripts/report_dark_total.py  # total comp., dark mode

leetcode-compensation's People

Contributors

kuutsav 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  avatar  avatar  avatar  avatar  avatar  avatar

leetcode-compensation's Issues

gets stuck on the searched item

What if whenever someone searches for a company, It could go back to original page or the starting page.. Now we have to manually get it done

Offer Dark Mode Version of Graphs & Charts

Hi @urk-stav, glad to see someone working on this. Projects like these, really help dealing with information asymmetry in our industry.

I'd personally want to see some dark mode version of these datasets. For users who have dark mode set-up, it can amount to being met with a flash-of-blinding-light, when navigating through a page, and be met with content against pure white background.

The opposite isn't true. As in, for readers that prefer light mode, being met with dark mode content (white-ish foreground, darker shade of background) won't be as jarring.

Would you be interested in publishing this as GitHub pages? If so, you might want to use Python MkDocs Material, and see if you can offer dark mode images for users who want dark mode, and light mode images for users who want light mode. For reference, check homepage of SimpleAnalytics.

Happy to help with PR, if you need.

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.