Last active
March 31, 2022 11:34
-
-
Save evikza/88dd7cd2474160d9b9d8be3485541e2f to your computer and use it in GitHub Desktop.
Get value `worker_id` from https://yandex.ru/uslugi/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document['documentElement']['outerHTML'] | |
['match'](/"ydoWorkerId":(["\w"|-])+/m)[0x0] | |
['split'](':')[0x1] | |
['replaceAll']('\x22', ''); | |
// "ydoWorkerId":"(.*?)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment