Jump to content
UBot Underground

How to save a file from JS button?...


Recommended Posts

Using the adwords keyword tool.

How Do I save the file after pressing the "donwload"?

 

Steps to button:

1. Go to google adwords keyword tool.

2. Do some search, say "test".

3. Press "keyword idea" tab if you happen to be in the other one.

4. Under the tab (very close under) there are a few grey buttons, one is "donwload" with an arrow.

5. click that.

6. "all search results"

7. doesn't matter the format, click "download"

 

Now open a Ubot save window, but how do I script to save the file without interaction

Link to post
Share on other sites

There have been a couple of threads started about this, and here is the only fix I know of for now. However, this only downloads the keywords and not all the data (which is probably what you are after).

 

Instead of clicking on the download to csv, try this.

 

Click on the view as text, then scrape the value of the pop up and add it to a list.

 

Then save the list to a file.

 

Hopefully that helps :)

 

Working for me on my side.

 

Example:

click($element offset(<class="goog-button-base-content">, 4), "Left Click", "No")

wait for element(<innertext="Selected">, "", "Appear")

click(<outerhtml="<div class=\"sGK\"><span class=\"sHK\">Selected</span><div class=\"sIK\">101</div></div>">, "Left Click", "No")

add list to list(%keyword results, $scrape attribute(<class="sLMB">, "value"), "Delete", "Global")

 

 

Justin

Link to post
Share on other sites

There is a command that goes like "save downloaded file" or something like that.

 

Put that command after the click for the download, and it will download the file.

 

I have downloaded the keywords from adwords keyword tool using this method.

 

I will upload the source when I get back to my computer.

Link to post
Share on other sites

Thanks a2mateit, but I do need the other data, I am scrapping the entire data untill now, but wanted to move to the file download.

 

Odeesuba, I would love to see how you do it.

I did see the command, but I don't understand if it's possible to avoid the interactive save file, since I am running this program as a batch...

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...