Reputation: 33
I'm developping an app in nodejs that combines multiple intranet sites into 1. So far, I used requestjs to make requests to obtain what I need. I'm a bit stuck on how to do realtime communication between the nodejs (with express) and a particular site that has a captcha login. I'm thinking about a headless browser that forwards the captcha to my ui, but I don't know how to start. Is there any GOOD and up-to-date tutorial?
Upvotes: 1
Views: 315
Reputation: 8635
Real-time communication is a buzz for marketing people, that is also the reason you feel lost.
If I got you right, you have a node.js server which aggregates several sites being scrambled in the same time.
Here is the solution on paper (it will take some effort to code this all - a task for you):
(Let site A have captcha)
Captcha_Site_A.png
then save the solution to Captcha_Site_A.txt
.Yes, it is a long journey, but you get what you ask :)
P.S. Step 9 of receiving website can be achieved by: making Phantom script print the results to the stdout
, and make Node.js catch the output (Look again into Child Process documentation). Alternatively save the results into the temporary file.
Upvotes: 1