Jump to content
UBot Underground

How Would I Merge 2 Text Files Together?


Recommended Posts

I have built a proxy scraper but I have to see how I can merge the 2 text files together. It was not able to scrape both proxy and port at the same time so I had to do 2 different add list to list. As a result I have 1 text file saved as proxies and 1 saved as ports. I also have a pic attached that shows what I'm dealing with. Help on this is appreciated.

post-9248-0-12003400-1459556334_thumb.jpg

Link to post
Share on other sites

untested but should work,add this underneath the port list in your script

if($comparison($list total(%proxies),"=",$list total(%port))) {
    then {
        set(#position,0,"Global")
        loop($list total(%proxies)) {
            add item to list(%mergedList,"{$list item(%proxies,#position)}:{$list item(%port,#position)}","Don\'t Delete","Global")
            increment(#position)
        }
    }
    else {
        alert("scraping error,proxies and port should be of equal length")
    }
}

then save that file instead

  • Like 1
Link to post
Share on other sites

Yes sir reeeee... I just put it together and it works great. Of course I am about to make myself another video showing step by step how it works so if I need it again it won't take days for me to figure it out. Thanks a lot for your help on it.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...