On 09/01/2014 03:15 PM, Alexandro Colorado wrote:
Yup my idea is that you have an array with the spam users, perform a search
on them, and then fill out the page with the posts related to the spam
users, and just have the macros select all checkboxes and press the delete,
and go to the next page. That would allow you to get all the spam from that
user at least in a smaller process.

I was able to use iMacros to search for all posts by a specific user. I was able to export the text from the found rows. I have not figured out how to export the links to each individual message.

Sadly, I must navigate to each spam thread and delete each thread individually. If I am able to figure out how to export each spam link, I can always use some other scripting language that I know well to create huge scripts that itemize each "bad thread". I am able to post a sample HTML output if anyone knows how to use iMacros. To make things even worse, it probably only shows about 40 messages per page. The biggest hurdle is simply learning iMacros; it is a bit cryptic.


Well is not really coding in Javascript since greasemonkey takes care of
that. Remember that you only need to change the url for the page of the
query result. Greasemonkey has a script called AutoFill where you only need
to select the name value of the HTML control and modify it to be checked.
The next task is to press the Button control to delete, and the final step
is to go to the next query in time. Probably the URL will have a page like
?p=23 so is a matter of increments.

Hmmm. Not sure that would help much in this case.

The search part is easy. It then returns a page containing a table with entries such as this:

table  
width="100%"cellpadding="4"cellspacing="1"border="0"class="forumline"align="center">
  <tr>
        <th  width="4%"height="25"class="thCornerL"nowrap="nowrap">&nbsp;</th>
        <th  class="thTop"nowrap="nowrap">&nbsp;Forum&nbsp;</th>
        <th  class="thTop"nowrap="nowrap">&nbsp;Topics&nbsp;</th>
        <th  class="thTop"nowrap="nowrap">&nbsp;Author&nbsp;</th>
        <th  class="thTop"nowrap="nowrap">&nbsp;Replies&nbsp;</th>
        <th  class="thTop"nowrap="nowrap">&nbsp;Views&nbsp;</th>
        <th  class="thCornerR"nowrap="nowrap">&nbsp;Last Post&nbsp;</th>
  </tr>
  <tr>
        <td  class="row1"align="center"valign="middle"><img  src="templates/subSilver/images/folder.gif  
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/folder.gif>"width="19"height="18"alt="No new posts"title="No new 
posts"/></td>
        <td  class="row1"><span  class="forumlink"><a  href="viewforum.phtml?f=2  
<view-source:http://www.oooforum.org/forum/viewforum.phtml?f=2>"class="forumlink">OpenOffice.org Writer</a></span></td>
        <td  class="row2"><span  class="topictitle"><a  href="viewtopic.phtml?t=368059&amp;highlight=  
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?t=368059&highlight=>"class="topictitle">buying Maxaman, Maxaman order code, Maxaman without 
dr</a></span><br  /><span  class="gensmall"></span></td>
        <td  class="row1"align="center"valign="middle"><span  class="name"><a  
href="profile.phtml?mode=viewprofile&amp;u=294602  
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a></span></td>
        <td  class="row2"align="center"valign="middle"><span  
class="postdetails">0</span></td>
        <td  class="row1"align="center"valign="middle"><span  
class="postdetails">30</span></td>
        <td  class="row2"align="center"valign="middle"nowrap="nowrap"><span  class="postdetails">Fri Aug 29, 2014 9:19 am<br  /><a  href="profile.phtml?mode=viewprofile&amp;u=294602  
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a>  <a  href="viewtopic.phtml?p=725820#725820  <view-source:http://www.oooforum.org/forum/viewtopic.phtml?p=725820#725820>"><img 
 src="templates/subSilver/images/icon_latest_reply.gif  <view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View latest post"title="View latest 
post"border="0"/></a></span></td>
  </tr>
  <tr>
        <td  class="row1"align="center"valign="middle"><img  src="templates/subSilver/images/folder.gif  
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/folder.gif>"width="19"height="18"alt="No new posts"title="No new 
posts"/></td>
        <td  class="row1"><span  class="forumlink"><a  href="viewforum.phtml?f=2  
<view-source:http://www.oooforum.org/forum/viewforum.phtml?f=2>"class="forumlink">OpenOffice.org Writer</a></span></td>
        <td  class="row2"><span  class="topictitle"><a  href="viewtopic.phtml?t=368050&amp;highlight=  
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?t=368050&highlight=>"class="topictitle">buying Maxaman, Maxaman order code, Maxaman without 
dr</a></span><br  /><span  class="gensmall"></span></td>
        <td  class="row1"align="center"valign="middle"><span  class="name"><a  
href="profile.phtml?mode=viewprofile&amp;u=294602  
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a></span></td>
        <td  class="row2"align="center"valign="middle"><span  
class="postdetails">0</span></td>
        <td  class="row1"align="center"valign="middle"><span  
class="postdetails">18</span></td>
        <td  class="row2"align="center"valign="middle"nowrap="nowrap"><span  class="postdetails">Fri Aug 29, 2014 9:15 am<br  /><a  href="profile.phtml?mode=viewprofile&amp;u=294602  
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a>  <a  href="viewtopic.phtml?p=725805#725805  <view-source:http://www.oooforum.org/forum/viewtopic.phtml?p=725805#725805>"><img 
 src="templates/subSilver/images/icon_latest_reply.gif  <view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View latest post"title="View latest 
post"border="0"/></a></span></td>
  </tr>
  <tr>
        <td  class="row1"align="center"valign="middle"><img  src="templates/subSilver/images/folder.gif  
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/folder.gif>"width="19"height="18"alt="No new posts"title="No new 
posts"/></td>
        <td  class="row1"><span  class="forumlink"><a  href="viewforum.phtml?f=2  
<view-source:http://www.oooforum.org/forum/viewforum.phtml?f=2>"class="forumlink">OpenOffice.org Writer</a></span></td>
        <td  class="row2"><span  class="topictitle"><a  href="viewtopic.phtml?t=368024&amp;highlight=  
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?t=368024&highlight=>"class="topictitle">buying Maxaman, Maxaman order code, Maxaman without 
dr</a></span><br  /><span  class="gensmall"></span></td>
        <td  class="row1"align="center"valign="middle"><span  class="name"><a  
href="profile.phtml?mode=viewprofile&amp;u=294602  
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a></span></td>
        <td  class="row2"align="center"valign="middle"><span  
class="postdetails">0</span></td>
        <td  class="row1"align="center"valign="middle"><span  
class="postdetails">18</span></td>
        <td  class="row2"align="center"valign="middle"nowrap="nowrap"><span  class="postdetails">Fri Aug 29, 2014 9:04 am<br  /><a  href="profile.phtml?mode=viewprofile&amp;u=294602  
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a>  <a  href="viewtopic.phtml?p=725785#725785  <view-source:http://www.oooforum.org/forum/viewtopic.phtml?p=725785#725785>"><img 
 src="templates/subSilver/images/icon_latest_reply.gif  <view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View latest post"title="View latest 
post"border="0"/></a></span></td>
  </tr>

...... many more....

In iMacro, I have not figured out how to grab all of the references such as: 
"viewtopic.phtml?t=368050&amp;highlight="

The problem is that the numbers are not sequential for finding the threads. It is even more 
difficult if I want to find all of the posts in one shot, which would mean that I would need 
to then grab 10 or 11 more pages of lists such as: 
"search.phtml?search_id=198406476&amp;start=50"   for page 2, so, I suppose 
that it shows around 50 at a time.

It is just a question of how much time I have to figure out how to do this 
(meaning learn iMacros or similar). I spent a few hours worrying about this 
today and then I went with my family to an apple orchard for some family time.





--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php

Reply via email to