This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

I need help with a search script

Old posts that have not been replied to for several years.
Locked
d
daplaya

Post by daplaya »

The basic idea is this that the bot should download a file from the internet.
Then when someone types !search string it searches the file and displays the results matching the string.

Thx in advance :grin:
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You didn't include very much information... how do you expect anybody to help you if they don't know what to do?

First of all, what file? You never give it a name or anything, how is the bot supposed to download it?

By "the internet" do you mean http, ftp, email, news, napster, freenet, dcc transfer... or some other protocol?

What is in the file? Is it an xml document? Is it just one field per line? Is it html that needs to be filtered? In other words, what is the structure of the file? That has to be known before the bot can search through it.

What system does your bot run on? Does it have tools like wget and ncftp, or does it have to all be in Tcl?

Anyway, those are some really basic questions that you should answer.
d
daplaya

Post by daplaya »

On 2002-01-21 03:03, stdragon wrote:
You didn't include very much information... how do you expect anybody to help you if they don't know what to do?
Sorry, I'll try to be more exact.
First of all, what file? You never give it a name or anything, how is the bot supposed to download it?
file.html for example
By "the internet" do you mean http, ftp, email, news, napster, freenet, dcc transfer... or some other protocol?
http, forgot to add that.

What is in the file? Is it an xml document? Is it just one field per line? Is it html that needs to be filtered? In other words, what is the structure of the file? That has to be known before the bot can search through it.
The file looks like this:

Code: Select all

<tr><td><a href="ftp://some.server.ee:21/incoming/101 va - dj networx vol 9 cd1.mp3">101 va - dj networx vol 9 cd1.mp3</a> </td><td align="right">96,028,800 </td><td>    13:43 </td><td align="right">   21 </td><td>  Jan </td><td>  2002</td></tr>
<tr><td><a href="ftp://some.server.ee:21/incoming/Stronghold-CLASS-Eclipse.r02">Stronghold-CLASS-Eclipse.r02</a> </td><td align="right">15,000,000 </td><td>    13:35 </td><td align="right">   21 </td><td>  Jan </td><td>  2002</td></tr>

What system does your bot run on? Does it have tools like wget and ncftp, or does it have to all be in Tcl?
Bots runs on Redhat Linux, wget is available.

What I would like the bot to do is to search the downloaded file for matches in file names and if it finds a match then display it.
Hope this clears it up a bit.
Locked