LalaCuteGroup / lala-referral

A referral service serving the members of LC TG Group
4 stars 6 forks source link

Leetcode Verification Web Scraper Lambda #5

Open heiheihang opened 1 year ago

heiheihang commented 1 year ago

We need a Web Scraper service to look for the OTP in our Leetcode Profile Verification Service. It should look up the tags texts in the leetcode profile, and see if any of the tag matches with the OTP (provided as an input).

ocwilsonchow commented 1 year ago

I don't really understand the entire flow. Could you elaborate more?

https://www.scrapingbee.com/blog/web-scraping-javascript/ https://www.analyticsvidhya.com/blog/2020/10/web-scraping-using-node-js/

Are these two articles relevant? Can I write it in Node.js?

wingkwong commented 1 year ago

@ocwilsonchow

Once applicants create accounts, they need to fill in their LC usernames. We'll generate a OTP and require them to input it in their account settings (technical skills) so that it will display like below in their profile pages.

image

So this lambda is used to scape these "tags" to see if either one is the OTP provided by us. If so, then this applicants is verified. Otherwise, it's not.

heiheihang commented 1 year ago

Regarding the language we are going to use, we will be using TS for all lambdas.