Background browser script, program
Good afternoon, I need a program that will intercept 2 consecutive requests during regular surfing to write the information from two payloads into one line in a text file, and this file should be automatically sent in the background to a remote computer in a specific folder.
The format of the line in the file is "info1" - "info2". The information in the body of request2 needs to be modified with a couple of calculations.
The text file should be transmitted with some security for authorization or something else. (An open port without a login and password is not suitable)
Record a couple of values from two payloads only if payload2 was initiated.
Payload1 - name; payload2 - id. If a line with a specific name already exists, then the new parsed pairs of values should be written instead of the old ones.
A solution without any strange windows that suddenly need to be interacted with on a constant basis and other workarounds.
Only a beautiful and clear solution.
P.S. The requests come from the page code;
script, chrome, parsing, data parsing,
📄 Technical Assignment
Project:
Development of a solution for intercepting HTTP requests (XHR / fetch) in the browser and writing data from the request body (payload) to a text file with subsequent sending of this file to another computer.
1. Goal
When working on a specific website, it is necessary to intercept data from payload of two specific requests in real time:
URL-1 — get data from the payload, save it as the first part of the line.
URL-2 — get data from the payload, perform a simple arithmetic operation, add it to the first part of the line from URL-1.
As a result, both parts are written into one line of the text file 1.txt on the desktop.
2. Logic of Operation
Intercept only 2 specified URLs (POST, XHR).
URL-1 arrives → remember the data (first part).
URL-2 arrives → supplement with data for the second part → write to the file.
The links have values that can be understood as the links we need.
There are no unique IDs for linking — the order of arrival is used (the last URL-1 is linked to the first URL-2).
After writing the line, the buffer is cleared and we wait for the next pair.
3. Writing to File
File:
C:\Users\Administrator\Desktop\1.txt.Append line by line (new pair — new line).
Line format:
part_from_URL1<TAB>part_from_URL2(or with another delimiter by agreement).Writing should be automatic and "silent" — without unnecessary windows and confirmations.
The solution should work for a long time without restarting (the browser window is usually rarely closed).
4. Sending the File to Another Computer
After updating
1.txt, it should be automatically sent to the remote computer. But if the file has not been updated again within 1 minute.
5. Requirements
Work in Google Chrome on Windows.
Intercept data specifically from payload (request body), not from the response.
6. Output
A ready working solution (source code + installation/startup instructions).
Instructions on how to change:
URLs;
file name;
arithmetic operation;
method of sending the file to another computer.
Client's review of cooperation with Vitalii Klimko
Background browser script, programQuickly (1 day instead of 3), with a detailed instruction and videos, always in touch, I recommend
Freelancer's review of cooperation with Ivan Ivanov
Background browser script, programThe collaboration was comfortable from start to finish.
-
248 Hello!
I have practical experience in developing solutions for intercepting and processing HTTP requests in the browser (Chrome DevTools Protocol, Playwright), as well as in building automated integration systems and secure data transmission.
✔ Your task is clear: you need to correctly track two consecutive POST requests (XHR/fetch), obtain the parameters name and id from them (with further calculations), save them in the file 1.txt in the format nameid, with logic for updating existing lines.
✔ After changes in the file — automatic transmission to a remote server with security (HTTPS with a token or SFTP with authorization).
✔ I will implement it "cleanly", without additional windows or unnecessary user interaction, focusing on stability during long-term operation.
I guarantee neat code, a setup instruction (URL, file, arithmetic, transmission method), as well as support during launch.
… I would be happy to discuss the details and provide an optimal solution.
-
453 3 0 Instead of saving data in a file, if I use localStorage, I can create a Chrome extension to send this data to a Node server on another computer.
-
10365 30 0 3 Good day!
I see two possible options for implementing your task.
I am ready to discuss in detail which one will be more convenient and effective for you.
I will complete the work quickly and efficiently.
We will clarify the budget and deadlines during our communication.
I look forward to collaborating!
-
5164 210 0 Good day
I have an idea on how this could be implemented.
If the project is still relevant, please reach out.
-
Средствами самого браузера не получится, так как банально в том пространстве, в котором это можно реализовать, нет доступа к ФС. Тут только несколькими компонентами, включая браузер.
-
Current freelance projects in the category Data Parsing
Database of websites on WooCommerceIt is necessary to compile a database of Ukrainian online store websites on WooCommerce with the contact information provided on the sites. Only active websites (indicator: updated catalog/content, working domain) Table format - website address, phone number, e-mail. Data Parsing ∙ 1 day 10 hours back ∙ 20 proposals |
Create a dashboard in https://airtable.com/ for the performance of advertising creatives from Facebook ads.Full specification https://docs.google.com/document/d/1_n_oYRNZWYxalUA---DM5AD1b5ZSrtePw5J4G42svGw/edit?usp=sharing Databases & SQL, Data Parsing ∙ 3 days back ∙ 17 proposals |
Creation of an Excel file for uploading products to the websites of other partners.I am interested in creating an Excel table with all parameters. Here is the website - https://heiztechnik.com.ua/ And the positions I am interested in to be transferred: Manual boilers: 1) TIS UNI 15-95 kW (10) pcs 2)TIS HARD 150-500 kW (7) pcs Pellet boilers: 1)TIS PELLET… Data Parsing ∙ 3 days 4 hours back ∙ 34 proposals |
A developer is required for parsing the catalog and automating data import.Detailed technical specifications in the attached document Please indicate the estimated cost and timeline in your response Do you have experience working with parsing large catalogs What possible difficulties or limitations do you see in this task Databases & SQL, Data Parsing ∙ 3 days 7 hours back ∙ 40 proposals |
Find a product feed (Google Merchant XML) for a website on OpenCart
16 USD
It is necessary to find a direct link to the active product feed (XML) of a competitor for Google Merchant Center Platform (CMS): OpenCart / ocStore Find the original feedRequirements for the result: Working link to the XML file Python, Data Parsing ∙ 3 days 13 hours back ∙ 24 proposals |