Jump to content
UBot Underground

Recommended Posts

Hi,

I am trying to automate selection of a category in

http://www.rssbuffet.com/submit.php

As you can see in the site, the category is a category tree. How is it possible to automate this. Any ideas?

Link to post
Share on other sites

Ok now here is a sample code to give you an idea on how this can be done is.

Sample script

 

Ok now in this I have used 3 variables: a, b, & c.

 

Ok to my experience it can be done by choosing by position.

 

Variables a,b,c are position variables,

 

Now first we clicked on the: "Click here to Choose Category" link by selecting the choose by attribute.

 

then click it.

 

->Arts & History

Commerce

Computers & Internet

Health

Hobbies

Home & Living

Media

Music & Movies

Outdoors

Regional

Religion

Science & Technology

Social Networking

Society

Sports

 

Now these link start at position 11 and last is 25.

 

Thus, we set 'a' = rand(11,25);

 

Now we click(select) a random main category; lets say it selected 14: "Health"

It has 20 sub-cats. :

Alternative Health

Anatomy

Asthma

Beauty

Bodybuilding

Brain Disorders

Cancer

Eating Disorders

Ergonomics

Fitness

Learning Disorders

Medical Science

Mental Health

Nursing

Nutrition

Psychiatry

Self Improvement

Sexual Health

Substance Abuse

Weight Loss

 

And all have different positions, so we need to check the position of the first and the last sub-cat.

 

Right click the first sub-cat and choose by pos. note the no. and do same with last.

 

Ok now varibles 'b' and 'c': 'b' is the value of the first sub-cat and 'c' is the value of the last sub-cat.

 

This needs to be done manually as they all have diff no. of sub-cats. Its a pain in the butt..

 

Now that we have all the values of all sub-cats. of all cats.

 

we run a check using if statements checking if the value of 'a' is "sumthing" then set 'b' = first sub-cat pos. of that cat. and same with the 'c'.

 

Hey in the sample script above I have done the first 4 IF Statement for you but as there were 16 so I have left the other 12 for you to do..

 

Enjoy...

 

Get back to me if you have any doubt I think that it may not be the case after this huge explaination... :P

 

Cheers!!

 

Praney

  • Like 4
Link to post
Share on other sites

Thanks a lot PraneyBehl, it works except that it throws an error sometimes, so I changed the initial setting of variable b and c to 0 instead of $nothing. Now it works fine :)

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