Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > Programming/Web Design > Web Design

Web Design Discuss anything about web language such as HTML, PHP etc.


How to start on a web bot ?

Web Design


Reply
 
Thread Tools Display Modes
Old 06-03-2008, 03:36 PM   #1
Akutski
WoW forum pro moderator
 
Last Online: 08-22-2009 05:22 PM
Join Date: Nov 2005
Location: Dubai
Posts: 1,384
Rep Power: 5
Rep Points: 11
Akutski is on a distinguished road
Feedback: (0)
Points: 28,965.80
Bank: 16.24
Total Points: 28,982.04
How to start on a web bot ?

Hey guys, I was looking for a way to create a web bot that basically copies a link from one site and copies it to another site. There are a lot of links so the bot has to go through the names systematically. It will also have to go to certain pages for each different links which I will hard code into the bot itself. Example, if this name is copied then place it in this page etc... As a noob to PhP I would like to know what these kind of bots are called so that I may search for tutorials for them on google. Or if anyone would be kind enough to link me with tutorials that may help me with this kind of coding, it would be greatly appreciated. Thanks.
Akutski is offline   Reply With Quote
Sponsored Links
Old 06-03-2008, 03:58 PM   #2
x1nixmzeng
GzP Underground
 
Join Date: Nov 2007
Location: UK
Posts: 3,024
Rep Power: 7
Rep Points: 135
x1nixmzeng will become famous soon enoughx1nixmzeng will become famous soon enough
Feedback: (0)
Points: 3,723.93
Bank: 81,238.66
Total Points: 84,962.59
XD - chaosmage Yum - chaosmage Hahahaaa zup... We need to take a break... lOL - drkeyes Enjoy ! ! ! ! - DmanStasiu - Dmanstasiu - dmanstasiu look a cookie! - Loupy 
This felt from your bag - drkeyes For being a god of a hacker :) - Brandon-Bmx 
Xfire x1nixmzeng
Re: How to start on a web bot ?

You mean you want to parse links from another site?

Assuming so, with a language like PHP you'd fetch the webpage (file_get_contents("url") or CURL - Google these) and run some Regex.

I'll bold all these terms you need to Google, but really, there is a lot of source out there.
__________________
#TheVoid @ Jecht.xploitirc.net

Remember to click Thanks on useful posts!

(Or, if you have Rep Power of 1 or more, give positive reputation!)

Posts you may be interested in:

[Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ]

Last released: [Only registered and activated users can see links. ]
x1nixmzeng is offline   Reply With Quote
Old 06-04-2008, 09:57 AM   #3
XTZGZoReX
GzP Underground
 
XTZGZoReX's Avatar
 
Last Online: Today 09:42 AM
Join Date: May 2006
Location: Denmark
Posts: 5,942
Rep Power: 14
Rep Points: 323
XTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the rough
Feedback: (0)
Points: 1,138.16
Bank: 236,513.94
Total Points: 237,652.10
2 my fav mod, lol steves my 2nd fav ^.^ - oriks Happy B-Day! - Skyline_GTR I love you, bitch! :D - BrianDJ 
Xfire Xtzgzorex View Member's Steam Community Profile
Re: How to start on a web bot ?

PHP can indeed easily do this task. I think it's the way to go. Although, you will need to find a way to keep it up (like a while 1 == 1 loop) or you will have to reload it everytime you want to parse new texts/urls.
__________________
GzP Underground Admin / Lead developer of InfinityCore / Encoder in Mochi/Jade/Koharubi

Had I the heavens’ embroidered cloths,
Enwrought with golden and silver light,
The blue and the dim and the dark cloths
Of night and light and the half light,
I would spread the cloths under your feet:
But I, being poor, have only my dreams;
I have spread my dreams under your feet;
Tread softly because you tread on my dreams.


Don't add me on instant messengers for no reason. Also, I do not trade/MM.


XTZGZoReX is offline   Reply With Quote
Old 06-04-2008, 03:24 PM   #4
Akutski
WoW forum pro moderator
 
Last Online: 08-22-2009 05:22 PM
Join Date: Nov 2005
Location: Dubai
Posts: 1,384
Rep Power: 5
Rep Points: 11
Akutski is on a distinguished road
Feedback: (0)
Points: 28,965.80
Bank: 16.24
Total Points: 28,982.04
Re: How to start on a web bot ?

ok thanks for the bolded words, managed to find some really good sites about parcing. That was the word that really helped in my searches btw XD. Now just one last thing to get me going.... whats the easiest and fastest way to setup a PhP server to test out my scripts ? I know of apache but are there any simpler ones just to test my scripts on ?
Akutski is offline   Reply With Quote
Old 06-04-2008, 07:18 PM   #5
lut
Registered User
 
lut's Avatar
 
Last Online: 10-31-2009 02:21 AM
Join Date: Dec 2005
Location: Michigan
Posts: 1,692
Rep Power: 6
Rep Points: 31
lut is on a distinguished road
Feedback: (0)
Points: 53,962.66
Bank: 0.00
Total Points: 53,962.66
Re: How to start on a web bot ?

the fastest way would be either [Only registered and activated users can see links. ] or [Only registered and activated users can see links. ] they are both one install apache,php,mysql servers easy to use and easy to setup.

Wamp is probably the easiest of the two.

If you want to do this an not tie up your server with a infinite loop "while(1=1)" you should enter the urls to parse into a text file then you just have to check for the end of the file "while(!file.eof)".

A parser like this can get pretty hefty depending on how far you want to go into a site. A nice way to do something like this is create a new connection for each internal link you find on a page. run the parser on each connection then close it as soon as you reach the end of a page. Keep each internal link in an array for that site so you can check to see if you have visited each link and don't go over ones you have already done.

The other way is to only search certain pages for each site and list them in your text file.

If you don't want to use a text file you can store each url in a large array and use a for loop with sizeof(myarray)-1 to go through each link.

Enjoy

Feral
__________________
The things in life that are handed to you are not what holds any value.
Its the things that you have to work for that hold the greatest rewards.
lut is offline   Reply With Quote
Old 06-06-2008, 08:15 AM   #6
XTZGZoReX
GzP Underground
 
XTZGZoReX's Avatar
 
Last Online: Today 09:42 AM
Join Date: May 2006
Location: Denmark
Posts: 5,942
Rep Power: 14
Rep Points: 323
XTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the rough
Feedback: (0)
Points: 1,138.16
Bank: 236,513.94
Total Points: 237,652.10
2 my fav mod, lol steves my 2nd fav ^.^ - oriks Happy B-Day! - Skyline_GTR I love you, bitch! :D - BrianDJ 
Xfire Xtzgzorex View Member's Steam Community Profile
Re: How to start on a web bot ?

Now that I think of it, he doesn't need to use a while loop.

He can just go through the sites, tell the bot to sleep for like 30 secs, then go through the sites again, and so on. This would be done with [Only registered and activated users can see links. ] and [Only registered and activated users can see links. ].

Update: What? I thought PHP had goto?
__________________
GzP Underground Admin / Lead developer of InfinityCore / Encoder in Mochi/Jade/Koharubi

Had I the heavens’ embroidered cloths,
Enwrought with golden and silver light,
The blue and the dim and the dark cloths
Of night and light and the half light,
I would spread the cloths under your feet:
But I, being poor, have only my dreams;
I have spread my dreams under your feet;
Tread softly because you tread on my dreams.


Don't add me on instant messengers for no reason. Also, I do not trade/MM.


XTZGZoReX is offline   Reply With Quote
Old 06-06-2008, 10:34 AM   #7
lut
Registered User
 
lut's Avatar
 
Last Online: 10-31-2009 02:21 AM
Join Date: Dec 2005
Location: Michigan
Posts: 1,692
Rep Power: 6
Rep Points: 31
lut is on a distinguished road
Feedback: (0)
Points: 53,962.66
Bank: 0.00
Total Points: 53,962.66
Re: How to start on a web bot ?

The 'goto' for php isn't coming till version 6 and even then it's not exactly a goto but more of a break that can be pointed at an name anchor/target.


Either way a goto is just a make shift loop anyway, He could always use javascript to refresh the page after a site had been scanned but that would be pointless when a loop would work much better.

Lut
__________________
The things in life that are handed to you are not what holds any value.
Its the things that you have to work for that hold the greatest rewards.
lut is offline   Reply With Quote
Old 06-07-2008, 12:55 PM   #8
XTZGZoReX
GzP Underground
 
XTZGZoReX's Avatar
 
Last Online: Today 09:42 AM
Join Date: May 2006
Location: Denmark
Posts: 5,942
Rep Power: 14
Rep Points: 323
XTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the rough
Feedback: (0)
Points: 1,138.16
Bank: 236,513.94
Total Points: 237,652.10
2 my fav mod, lol steves my 2nd fav ^.^ - oriks Happy B-Day! - Skyline_GTR I love you, bitch! :D - BrianDJ 
Xfire Xtzgzorex View Member's Steam Community Profile
Re: How to start on a web bot ?

Well, the point of a goto + a sleep would be that the application wouldn't be as CPU-intensive when sleep'ing as when using a while loop to constantly loop through things.
__________________
GzP Underground Admin / Lead developer of InfinityCore / Encoder in Mochi/Jade/Koharubi

Had I the heavens’ embroidered cloths,
Enwrought with golden and silver light,
The blue and the dim and the dark cloths
Of night and light and the half light,
I would spread the cloths under your feet:
But I, being poor, have only my dreams;
I have spread my dreams under your feet;
Tread softly because you tread on my dreams.


Don't add me on instant messengers for no reason. Also, I do not trade/MM.


XTZGZoReX is offline   Reply With Quote
Old 06-07-2008, 07:47 PM   #9
lut
Registered User
 
lut's Avatar
 
Last Online: 10-31-2009 02:21 AM
Join Date: Dec 2005
Location: Michigan
Posts: 1,692
Rep Power: 6
Rep Points: 31
lut is on a distinguished road
Feedback: (0)
Points: 53,962.66
Bank: 0.00
Total Points: 53,962.66
Re: How to start on a web bot ?

yea but you can use a sleep in a while loop also.
__________________
The things in life that are handed to you are not what holds any value.
Its the things that you have to work for that hold the greatest rewards.
lut is offline   Reply With Quote
Old 06-09-2008, 07:48 AM   #10
XTZGZoReX
GzP Underground
 
XTZGZoReX's Avatar
 
Last Online: Today 09:42 AM
Join Date: May 2006
Location: Denmark
Posts: 5,942
Rep Power: 14
Rep Points: 323
XTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the roughXTZGZoReX is a jewel in the rough
Feedback: (0)
Points: 1,138.16
Bank: 236,513.94
Total Points: 237,652.10
2 my fav mod, lol steves my 2nd fav ^.^ - oriks Happy B-Day! - Skyline_GTR I love you, bitch! :D - BrianDJ 
Xfire Xtzgzorex View Member's Steam Community Profile
Re: How to start on a web bot ?

True enough.. True. I wonder why I didn't take of that.

Well, that is obviously the way to go; while() + sleep().
__________________
GzP Underground Admin / Lead developer of InfinityCore / Encoder in Mochi/Jade/Koharubi

Had I the heavens’ embroidered cloths,
Enwrought with golden and silver light,
The blue and the dim and the dark cloths
Of night and light and the half light,
I would spread the cloths under your feet:
But I, being poor, have only my dreams;
I have spread my dreams under your feet;
Tread softly because you tread on my dreams.


Don't add me on instant messengers for no reason. Also, I do not trade/MM.


XTZGZoReX is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

All times are GMT -7. The time now is 09:39 PM.

 

Copyright ©2009, GamerzPlanet.Net
Visits: