Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leetcode Problem Posting to #leetcode_discussion #757

Open
NicholasCG opened this issue Feb 10, 2023 · 1 comment
Open

Leetcode Problem Posting to #leetcode_discussion #757

NicholasCG opened this issue Feb 10, 2023 · 1 comment
Labels
good first issue Good for newcomers job something that needs to be executed on a schedule

Comments

@NicholasCG
Copy link

Set up a daily post to #leetcode_discussion forum for the daily problem that releases at 7 PM over here. Better than having a user post it manually every night.

There's an existing GraphQL query that should be able to handle this:

POST https://leetcode.com/graphql/

query questionOfToday {
  activeDailyCodingChallengeQuestion {
    date
    userStatus
    link
    question {
      acRate
      difficulty
      freqBar
      frontendQuestionId
      isFavor
      paidOnly
      status
      title
      titleSlug
      hasVideoSolution
      hasSolution
      topicTags {
        name
        id
        slug
      }
    }
  }
}
@c650 c650 added good first issue Good for newcomers job something that needs to be executed on a schedule labels Feb 11, 2023
@c650 c650 added this to the More User Involvement milestone Feb 11, 2023
@c650
Copy link
Collaborator

c650 commented Feb 11, 2023

this is very doable. go ahead and do it! here are some guidelines in case you haven't contributed before.

  • create a new Job
  • schedule it to run at 7pms (most of our jobs just run on time intervals, so there may be some changes to make this work well. if so, this should be its own PR/commit)
  • manually POST or find a graphql lib and do it. i dont think we consume any graphql api's rn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers job something that needs to be executed on a schedule
Projects
None yet
Development

No branches or pull requests

2 participants