| Welcome to Webforumz.com. |
|
Nov 15th, 2007, 19:41
|
#1 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Website analyser
I made a very basic website analyzer.
It basically shows you the important tags for your site in a list.
I spent a few days on it however and I would like some people to try it and see what else I can add!
It can be downloaded here:
http://78.32.29.193/download.php
You need the the .NET 2 runtime thingy
it's command line,
when you enter a url it must be in the format: http://www.alexgeek.co.uk otherwise it will cause an error (working on an exception catcher for that but for now just make sure you do  )
Thanks guys! Will give rep to people who help!
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 15th, 2007, 20:03
|
#2 (permalink)
|
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,751
|
Re: Website analyser
Its a nice program for your first try! It would look a lot better if it wasn't in MS-DOS format  .
It worked fine for me! Nice tool you've got there although it could do with being web-based so that i dont have to run an exe every time  .
Nice one!
__________________
I'm back!!!! 
|
|
|
Nov 15th, 2007, 20:07
|
#3 (permalink)
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
|
Re: Website analyser
LoL, good one. Alex.
Not bad 4 a noobie 
I'm proud of u!
__________________
Web design is the creation of digital environments that facilitate and encourage human activity; reflect or adapt to individual voices and content; and change gracefully over time while always retaining their identity.
~ www.c010depunkk.com ~ the hang-out of a web developer
|
|
|
Nov 15th, 2007, 20:09
|
#4 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
Thanks both
Marc it's an .exe because I needed to test my C# skilz ha!
Soon(ish) I will put it into a GUI and it will look prettier.

__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 15th, 2007, 20:18
|
#5 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
To jan or anyone who's good with C#
How can add this function to remove html markup:
- Code: Select all
string strResult = Regex.Replace(strInput,@"<(.|\n)*?>",string.Empty);
To these functions which finds the matches:
- Code: Select all
public Match find(string reg)
{
Regex r = new Regex(reg);
Match m = r.Match(output);
return m;
}
public MatchCollection find2(string reg)
{
Regex r = new Regex(reg);
MatchCollection m = r.Matches(output);
return m;
}
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 16th, 2007, 06:12
|
#6 (permalink)
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
|
Re: Website analyser
- Code: Select all
public Match find(string reg)
{
Regex r = new Regex(reg);
Match m = r.Match(output);
return Regex.Replace(m.ToString(),@"<(.|\n)*?>",string.Empty);;
}
public MatchCollection find2(string reg)
{
Regex r = new Regex(reg);
MatchCollection m = r.Matches(output);
// do the same as above in a loop
}
That should work.... I'm not sure what a MatchCollection is - Array or whatever - just make some kind of loop and do that same as in the first function, and write the results into an ArrayList or a List and then return that.
__________________
Web design is the creation of digital environments that facilitate and encourage human activity; reflect or adapt to individual voices and content; and change gracefully over time while always retaining their identity.
~ www.c010depunkk.com ~ the hang-out of a web developer
|
|
|
Nov 16th, 2007, 06:17
|
#7 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
THANKS! Not allowed to give you rep 
ha.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 16th, 2007, 06:21
|
#8 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
- Code: Select all
fileWrite.cs(39,16): error CS0029: Cannot implicitly convert type 'string' to
'System.Text.RegularExpressions.Match'
Line 39:
- Code: Select all
return Regex.Replace(m.ToString(), @"<(.|\n)*?>", string.Empty);
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 16th, 2007, 07:15
|
#9 (permalink)
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
|
Re: Website analyser
Change the return type of the function to string.
__________________
Web design is the creation of digital environments that facilitate and encourage human activity; reflect or adapt to individual voices and content; and change gracefully over time while always retaining their identity.
~ www.c010depunkk.com ~ the hang-out of a web developer
|
|
|
Nov 16th, 2007, 07:28
|
#10 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
Awesome thanks 
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 16th, 2007, 07:39
|
#11 (permalink)
|
Join Date: Sep 2007
Location: somewhere
Age: 18
Posts: 219
|
Re: Website analyser
i get an erro report pop up everytime...
|
|
|
Nov 16th, 2007, 18:22
|
#12 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
Probably didn't put http:// in.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Nov 16th, 2007, 19:36
|
#13 (permalink)
|
Join Date: Sep 2007
Location: somewhere
Age: 18
Posts: 219
|
Re: Website analyser
yep i sure did..
|
|
|
Nov 16th, 2007, 19:49
|
#14 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: Website analyser
The GUI/Form one is on its way 
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|