egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

file extension and bugmenot

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Thu Apr 12, 2007 9:07 pm    Post subject: file extension and bugmenot Reply with quote

1 - retrieve file extension from www.filext.com

2 - search pass site in www.bugmenot.com
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Apr 13, 2007 3:39 am    Post subject: Reply with quote

On the files extension site, how much data do you want returned? First match? All matches? Could be quite lengthy.. Hmm, doing a search for com returns 7 matches, and it's quite messy. Tell me what data you want returned.

As far as the bmn site, sure, that should be easy enough. Just give me some example site names (real ones) so I can test the html/regexp's, the only site I can think of offhand is naplesdailynews.com. I suppose there should also be a limit on number of results returned for that too, but I can make that a config option.
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Fri Apr 13, 2007 5:45 pm    Post subject: Reply with quote

exact match.

Domains to test:

dreamcam.com.br
uol.com.br
playboy.com
sexyclube.com.br
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Apr 14, 2007 1:22 am    Post subject: Reply with quote

They're all exact matches, what I meant was, what data do you want returned? Just the "Program and/or Extension Function" field? If you want ALL matches and ALL fields, it can end up returning hundreds of lines.

Look at: http://filext.com/file-extension/com for example.
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Mon Apr 16, 2007 12:12 am    Post subject: Reply with quote

"Program and/or Extension Function" field is the best solution.

Or no?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Apr 16, 2007 12:37 am    Post subject: Reply with quote

Sounds good to me, I'll also include the urls in the output for more details.. Give me a few days to work on the 2 scripts.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Apr 18, 2007 3:28 am    Post subject: Reply with quote

filext.com script is done:

http://forum.egghelp.org/viewtopic.php?p=72108

I'll work on bugmenot later.
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Mon Apr 23, 2007 9:25 pm    Post subject: Reply with quote

very nice, work fine here.

when I grow, I want to be same you Razz
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Apr 24, 2007 5:36 pm    Post subject: Reply with quote

Only takes a few months of rtfm Smile

I'll let you figure out the bmn script, its not hard, use the filext script as a general guide to scraping webpages for content. If you need help, ask in the script help forum. About all you need to change is the url, the regexp and the particular format for the output.

The url's bugmenot uses take the form:
# http://www.bugmenot.com/view/hostname

Look through the html source from the resulting pages and find what's common to all the output you're looking for and grab it with regexp. Have fun reading that manpage Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber