R
R
Roman Andreevich2019-11-02 06:05:12
Email
Roman Andreevich, 2019-11-02 06:05:12

How to parse mail with nodejs?

Colleagues who were engaged in parsing mail and parsing letters, give advice on which way to look.
The bottom line is this: after ordering a service on a third-party site, a letter of a certain type arrives in the mail and you need to pull out the number of this order from it, there are no other adequate methods!
In other words, you need to take the last unread letter from a specific sender and a specific subject (getting his body and parsing is not a problem).

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton Neverov, 2019-11-02
@TTATPuOT

I used the library: https://github.com/mscdex/node-imap - connects to the mail via the IMAP protocol and reads everything that is in it.

R
Roman Andreevich, 2019-11-02
@RomanDillerNsk

Yes, Silenium doesn’t need a bot written in puppeteer, you just don’t need to listen to mail, but you need to go into the mailbox on an event and pull out a letter, imap is a normal topic, how I will implement the module I will write a solution, maybe it will come in handy for someone

N
Nadim Zakirov, 2019-11-02
@zkrvndm

I would make a browser plugin for this purpose.

S
SEOD, 2019-11-02
@SEOVirus

You can keep the Selenium browser open on node.js in headless mode and access the page code. Which means no browser, it will work even on a non-gpu system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question