How to Automate Browser Tasks Anonymously

KAMELEO.IO > Blog  > Guides  > How to Automate Browser Tasks Anonymously

How to Automate Browser Tasks Anonymously

Do you want to automate browser tasks, anonymously so that your IP doesn’t eventually get banned and so that your tasks can remain anonymous? Not everyone knows how to code. That doesn’t mean that you don’t want to automate browser tasks. Luckily browser automation is relatively easy to do. To the point that you can do it with just about zero coding experience whatsoever, with the help of guides like this.

…Of course, the more coding experience you have, the more advanced you can get with browser automation, but you can figure out the most complex tasks in a span of a few days.

What’s Needed to Automate Browser Tasks

For your automate browser tasks to be anonymous or to protect your IP address, you are going to need Kameleo. Kameleo is a spoofing tool that feeds browser trackers with wrong information. Allowing you to stay anonymous as your browser fingerprint will remain unique. We made a whole post explaining browser fingerprinting in the past, but essentially, 1 in 286,777 browsers are unique meaning it’s incredibly easy for platforms to identify you based on your fingerprint and thus prevent you from carrying out automated browser tasks.

Kameleo prevents that.

You’ll also need a VPN or a proxy to change your IP address. That’s another vital component needed to automate browser tasks anonymously.

Lastly, you’ll need to install Selenium for your coding platform. Otherwise, you’ll need to use UI.Vision (formerly Kanto) which is a great Chrome and Firefox extension for those looking to automate browser tasks without much knowledge, as it allows you to record what you do in your browser, and turns it into code. We’ll mainly focus on this platform in this automation guide.

And by the way, by anonymous, we don’t just mean that you won’t be recognized, but that you can also change parameters around such as what OS version you are seen to be using or what browser you are using. which can be very useful for testing.

The Easiest Way to Automate Anonymously With Ui.Vision and Kameleo

We’ll first walk you through how to automate browser tasks, followed by showing you how you can carry them out anonymously.

The great thing about UI.Vision is that it converts every new site entry, every click, every input, into code. That makes it incredibly easy to learn how to code browser automation.

And of course, there’s a bit more than just recording what you do that’s needed in this, but this platform is very easy to figure out as you play with it, and with hundreds of YouTube tutorials or guides on forums, whatever you want to automate, it’s possible with some patience and playing around.

In this example? We are going to get Google to give us the titles of all the top-ranking posts on the first, second, third, and fourth page of the desired search.

Here’s how to do it:

Firstly, power up UI.Vision which should be visible on the top-right of your browser after you’ve installed the add-on.

Before you press Record on the top-right, first open up the search that you want to take data from. In this example, we wanted to see what the top-ranking posts on Hulu in Europe were.

Right away as you press to Record, UI.Vision will take note of what’s opened.

How to Automate Browser Tasks Anonymously

If you wanted to automate just the task of opening this site, theoretically, you could press on the small icon beside Play Macro, and press Play Loop.

The next thing you’ll need to do is to press on Add, followed by typing in storeText in the target area.

As far as the value option goes, this is where you will need to put in !csvLine which will allow for the text to be saved as a CSV later on.

At the right of the target area, you’ll see Select. Press on it, and now in the browser, select the first proper title that’s not an ad.

That will allow UI.Vision to know which type of text it needs to store.

Now, press on Add which will add a new command line.

Type in csvSave.

Now in the target area, put in the name of your desired CSV file.

Now, press Play Macro.

When you go to CSV and click on as in our case, Kameleo test, this is what you will get:

Great, right?

Except that’s just one line which isn’t of much use as far as automating browser tasks, is it?

That’s why now you need to go back to the storeText command and copy the code in target.

Now paste that code somewhere as you’ll need it.

Here’s what our one read: xpath=//*[@id=”rso”]/div[3]/div/div[1]/div/div/div[1]/a/h3

(This will differ depending on what site you are on.)

Next, while at the storeText command, press on Select again, and select the second header. Once again, copy and paste it.

Here’s what the first and second headers say:
  1. xpath=//*[@id=”rso”]/div[3]/div/div[1]/div/div/div[1]/a/h3
  2. xpath=//*[@id=”rso”]/div[3]/div/div[2]/div/div/div[1]/a/h3

By comparing the two, you can tell that at one point, div [1] turns into div [2] which is the difference between header 1 and 2.

Now that we know that, we can automate the collection of data from all the headers.

In the area where there’s a changing number, we need to insert: ${!LOOP}

This will allow us to collect data from all the headers on the page when we loop this code.

In our case, this should look something like: xpath=//*[@id=”rso”]/div[3]/div/div[${!LOOP} ]/div/div/div[1]/a/h3

It’s very important that the code is perfect. If you miss a bracket or have a space, this won’t work

Now, let’s play a loop.

We’ll change the name of our CSV file so it’s separate to the last one, and let’s call it Kameleo test 2.

Click on the Play Loop that’s the small arrow facing downwards on the right of Play Macro. And now select how many times you want to loop. That number will determine how many times a header will be put into your CSV file. Google tends to have a different number of listings depending on the topic, but in this case, there are 10 headers, so we’ll press for the loop to play 10 times.

Now, when we go to the CSV file, here’s what will be there:

It works.

But, what if you want to automate more than one page?

Press Add and put in command: clickAndWait and put in Select, and click on the 2nd page.

That will lead you to be on the 2nd page.

Now, press on + on the storeText command, and drag it to the bottom. Repeat the same for the csvSave.

The interesting thing about this part is that in some cases the StoreText “Target” won’t work on the second page. And that’s where you’ll need to press Select and choose the first header. You can now actually copy the “Target” and paste it into the first StoreText, and it will still work.

This is our new Target text: xpath=//*[@id=”rso”]/div/div/div[${!LOOP}]/div/div/div[1]/a/h3

We changed the name of the CSV we want for the 2nd page to Kameleo test 3.

Here’s what we got:

You can now duplicate the next 3 commands, and change the linkText=2 to linkText=3 so that the UI.Vision will take you to page 3, and so on. Just don’t forget to change your csvSave text to different numbers.

For instance, here’s an example of us getting results from the first 4 pages. Simply by changing the linkText around mixed with duplicating the storeText, and csvSave.

And the best thing about this? That once you have this piece of code, by changing the address on the first line of these commands, you can automate the process of getting titles or lists of whatever you want.

We did this for a different title. We wanted to find the top ranking posts for Hulu Canada. Thus we just copied and pasted the link from our new search, and ran the loop. Here’s the result:

How to Automate Browser Tasks Anonymously
And just like that, you have automated browser tasks without any coding experience.

Of course, this is just the most simple, and perhaps not perfect way to automate title names collection, but it just goes to show you how easy it is to figure out how to automate browser tasks.

And you can get far more advanced with the help of YouTube tutorials and forums, to automate any tasks with some extra outside of the box thinking, without any coding experience. UI.Vision has a very useful Info for This Command section in the add-on which allows you to find out what you can do with each command.

Now, let’s walk through how you can carry out browser tasks anonymously whether not to be eventually marked as suspicious, or to stay anonymous.

How to Automate Browser Tasks Anonymously

Here you have a few options.

You could export the code from UI.Vision and open it on a coding platform with Selenium also installed while pressing Enable External Connections in the Settings of Kameleo, but there’s even a simpler way to do it.

Turn on Kameleo, create a New Profile with your desired settings allowing you to be virtually any device or platform, connect to a proxy by providing the right details, and run your profile.

How to Automate Browser Tasks Anonymously

Now, just simply install UI.Vision on that browser window that opened. Just like that, Kameleo will allow you to run your automated browser tasks anonymously.

However, it is important to remember that you need to change your profile every so often, otherwise while your identity will be safe, you might be flagged as suspicious.

At Kameleo we work at providing what our customers tell us they would find useful, so we are actually also working on the ability to automate Kameleo to automatically create and launch new profiles as you are carrying out automated browser tasks.

Other Ways to Automate

Here’s a link to a video in which we show how it’s possible to automate browser tasks by connecting the Selenium Driver (which is essential for automation with code) to Kameleo.

That’s How to Automate Browser Tasks Anonymously

In this simple guide, we showed you how you can easily collect data on blog post headers while staying anonymous. With the help of other guides and some playing around, you can take this even further, to automate the tasks you want to automate.

Kameleo Team
Kameleo Team

Our team consists of IT security experts, professional developers, and privacy enthusiasts who always searching better ways for browser fingerprint protection and developing innovative tools for browser automation and web scraping.