Find Jobs
Hire Freelancers

Using NodeJS, print all HTTPS Requests a given URL performs

R$30-45 BRL

已关闭
已发布大约 6 年前

R$30-45 BRL

货到付款
Whenever I access a URL that is always given to me (let's call it "search URL"), it makes several subsequent HTTPS requests. Between these requests, there are 4 ones that I need (let's call them "desired URLs"). Given any "search URL" I can easily get the "desired URLs" via Chrome DevTools (Network/XHR), but I need it in nodejs. So I need a script that outputs me ([login to view URL]) the "desired URLs" when I give it a "search URL". I had a working script, but it broke in a recent site update (I will give you a printscreen of the new site to make sure we are on the same page). Here is the NON-WORKING example: //=========================================================== //=========================================================== // OLD SITE WORKING [login to view URL] const phantom = require('phantom'); // searchURLs TO TEST THE SCRIPT (I ALWAYS HAVE THESE URLs) var searchURL1 = "*"; var searchURL2 = "*"; var searchURL3 = "*"; var searchURL4 = "*"; // RANDOMLY PICK ONE OF THE ABOVE var randomURLNumber= [login to view URL](([login to view URL]() * 4) + 1); if (randomURLNumber == 1){ getMMjsonURLs(searchURL1); } else { if (randomURLNumber == 2){ getMMjsonURLs(searchURL2); } else {if (randomURLNumber == 3){ getMMjsonURLs(searchURL3); } else {getMMjsonURLs(searchURL4); }; }; }; // PRINT THE desiredURLs async function getMMjsonURLs(url) { const instance = await [login to view URL](); const page = await [login to view URL](); await [login to view URL]('onResourceRequested', function (requestData) { //// PRINT ALL REQUESTS //[login to view URL]("ALL_REQUESTS: " + [login to view URL]); //// FILTER (should get 4 URLs similtar to: **) var desiredURL = [login to view URL]('airline'); if (desiredURL != null) { //// PRINT FILTERED REQUESTS [login to view URL]("**desiredURL: " + [login to view URL]); }; }); const status = await [login to view URL](url); await [login to view URL](); }; //=========================================================== //===========================================================
项目 ID: 16515152

关于此项目

5提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价R$41 BRL来参与此工作竞价
用户头像
I will use Phantomjs tool which will give you all the request is made. from that we can extract the desired URLs. I will do it in the node.js
R$50 BRL 在1天之内
4.9 (44条评论)
6.0
6.0
用户头像
This letter is to express my interest in the job posted on your website for an experienced, detailed-oriented, front-end web developer. As you'll see, I have six years of hands-on experience efficiently coding websites and applications using modern HTML, CSS, JavaScript and node js. Building state-of-the-art, easy to use, user-friendly websites and applications is truly a passion of mine and I am confident I would be an excellent addition to your organization. In addition to my knowledge base, I actively seek out new technologies and stay up-to-date on industry trends and advancements. This has allowed me to stay ahead of the curve and deliver exceptional work to all of my employers, including those I've worked for on a project basis. Thank you for your time and consideration. I look forward to speaking with you about this opportunity.
R$52 BRL 在10天之内
0.0 (0条评论)
0.0
0.0
用户头像
Please pick me
R$30 BRL 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

BRAZIL的国旗
Brazil
0.0
0
付款方式已验证
会员自3月 13, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。