Description
Parser as an extension. It collects ads on the website and aggregates their general data (link, title, description, price) into one large JSON file.
It's also possible to download the collected data either page by page or all at once.
Parses pagination pages using MutationObserver. This was done so that you don't have to manually start the parser each time. However, please note that the parser doesn't launch automatically; you need to click the appropriate button to launch it.



It works so that if the user is on the corresponding site — avito.ru — it is activated. If they are on any other site, it can't be launched. This is accomplished using an entry in the manifest:
It's activated by inserting a script into the page, which collects the necessary ads.
These ads are then sent to another part of the extension — control.js. Yes, it's just another JS script. Communication occurs continuously, using a special Chrome API. These ads are then collected and sent to the user for download.
All the necessary source code and examples can be found in the extension's repository.
Reviews
(0)